lbry-desktop/ui/component/nagLocaleSwitch/index.js
2022-03-23 09:16:52 -04:00

19 lines
566 B
JavaScript

import { connect } from 'react-redux';
import { doSetLanguage, doSetHomepage } from 'redux/actions/settings';
import { selectHomepageCode } from 'redux/selectors/settings';
import { selectUserCountry } from 'redux/selectors/user';
import { doOpenModal } from 'redux/actions/app';
import NagLocaleSwitch from './view';
const select = (state) => ({
homepageCode: selectHomepageCode(state),
userCountry: selectUserCountry(state),
});
const perform = {
doSetLanguage,
doSetHomepage,
doOpenModal,
};
export default connect(select, perform)(NagLocaleSwitch);