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

19 lines
501 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import * as SETTINGS from 'constants/settings';
2019-11-05 13:54:58 -05:00
import { doSetLanguage } from 'redux/actions/settings';
2019-10-03 12:55:21 -04:00
import { makeSelectClientSetting } from 'redux/selectors/settings';
import SettingLanguage from './view';
const select = state => ({
language: makeSelectClientSetting(SETTINGS.LANGUAGE)(state),
});
const perform = dispatch => ({
2019-11-05 13:54:58 -05:00
setLanguage: value => dispatch(doSetLanguage(value)),
});
export default connect(
select,
perform
)(SettingLanguage);