2022-03-02 15:44:01 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doSetLanguage, doSetHomepage } from 'redux/actions/settings';
|
2022-03-02 19:12:33 +01:00
|
|
|
import { selectHomepageCode } from 'redux/selectors/settings';
|
2022-03-02 15:44:01 +01:00
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
|
|
|
import NagLocaleSwitch from './view';
|
|
|
|
|
2022-03-02 19:12:33 +01:00
|
|
|
const select = (state) => ({
|
|
|
|
homepageCode: selectHomepageCode(state),
|
|
|
|
});
|
|
|
|
|
2022-03-02 15:44:01 +01:00
|
|
|
const perform = {
|
|
|
|
doSetLanguage,
|
|
|
|
doSetHomepage,
|
|
|
|
doOpenModal,
|
|
|
|
};
|
|
|
|
|
2022-03-02 19:12:33 +01:00
|
|
|
export default connect(select, perform)(NagLocaleSwitch);
|