2019-09-04 23:43:37 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-08-05 15:16:10 +02:00
|
|
|
import { doSetLanguage } from 'redux/actions/settings';
|
|
|
|
import { selectLanguage } from 'redux/selectors/settings';
|
2019-09-04 23:43:37 +02:00
|
|
|
import SettingLanguage from './view';
|
|
|
|
|
2021-08-05 15:16:10 +02:00
|
|
|
const select = (state) => ({
|
2020-11-20 14:21:31 +01:00
|
|
|
language: selectLanguage(state),
|
2019-09-04 23:43:37 +02:00
|
|
|
});
|
|
|
|
|
2021-08-05 15:16:10 +02:00
|
|
|
const perform = (dispatch) => ({
|
|
|
|
setLanguage: (value) => dispatch(doSetLanguage(value)),
|
2019-09-04 23:43:37 +02:00
|
|
|
});
|
|
|
|
|
2020-07-10 23:04:36 +02:00
|
|
|
export default connect(select, perform)(SettingLanguage);
|