mirror of
https://github.com/LBRYFoundation/lbry-android.git
synced 2025-08-23 17:47:28 +00:00
16 lines
603 B
JavaScript
16 lines
603 B
JavaScript
import { connect } from 'react-redux';
|
|
import { SETTINGS } from 'lbry-redux';
|
|
import { doSetClientSetting } from '../../redux/actions/settings';
|
|
import { makeSelectClientSetting } from '../../redux/selectors/settings';
|
|
import SettingsPage from './view';
|
|
|
|
const select = state => ({
|
|
keepDaemonRunning: makeSelectClientSetting(SETTINGS.KEEP_DAEMON_RUNNING)(state),
|
|
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_NSFW)(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
setClientSetting: (key, value) => dispatch(doSetClientSetting(key, value)),
|
|
});
|
|
|
|
export default connect(select, perform)(SettingsPage);
|