2021-08-05 11:18:16 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-08-05 14:48:04 +02:00
|
|
|
import { SETTINGS } from 'lbry-redux';
|
|
|
|
import { doSetClientSetting } from 'redux/actions/settings';
|
|
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
2021-08-05 11:18:16 +02:00
|
|
|
import SettingAppearance from './view';
|
|
|
|
|
2021-08-05 14:48:04 +02:00
|
|
|
const select = (state) => ({
|
|
|
|
clock24h: makeSelectClientSetting(SETTINGS.CLOCK_24H)(state),
|
|
|
|
});
|
2021-08-05 11:18:16 +02:00
|
|
|
|
2021-08-05 14:48:04 +02:00
|
|
|
const perform = (dispatch) => ({
|
|
|
|
setClientSetting: (key, value) => dispatch(doSetClientSetting(key, value)),
|
|
|
|
});
|
2021-08-05 11:18:16 +02:00
|
|
|
|
|
|
|
export default connect(select, perform)(SettingAppearance);
|