lbry-desktop/ui/component/settingLanguage/index.js

15 lines
416 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doSetLanguage } from 'redux/actions/settings';
import { selectLanguage } from 'redux/selectors/settings';
import SettingLanguage from './view';
const select = (state) => ({
language: selectLanguage(state),
});
const perform = (dispatch) => ({
setLanguage: (value) => dispatch(doSetLanguage(value)),
});
export default connect(select, perform)(SettingLanguage);