2021-08-09 08:36:42 +08:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-17 16:36:14 +08:00
|
|
|
import * as SETTINGS from 'constants/settings';
|
2021-08-09 08:36:42 +08:00
|
|
|
import { doSetClientSetting } from 'redux/actions/settings';
|
2022-02-26 13:18:10 +08:00
|
|
|
import { selectClientSetting } from 'redux/selectors/settings';
|
2021-08-09 08:36:42 +08:00
|
|
|
|
|
|
|
import SettingUnauthenticated from './view';
|
|
|
|
|
|
|
|
const select = (state) => ({
|
2021-11-23 12:29:04 +08:00
|
|
|
searchInLanguage: selectClientSetting(state, SETTINGS.SEARCH_IN_LANGUAGE),
|
2021-08-09 08:36:42 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
setSearchInLanguage: (value) => dispatch(doSetClientSetting(SETTINGS.SEARCH_IN_LANGUAGE, value)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(SettingUnauthenticated);
|