lbry-desktop/ui/component/nagLocaleSwitch/index.js
2022-03-02 13:12:33 -05:00

17 lines
467 B
JavaScript

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