lbry-desktop/ui/component/settingClosingBehavior/index.js
zeppi ee9f63a161 integrate all the things
bugfix

wip

flow

fix

cleaning

clean
2021-10-15 23:49:41 -04:00

15 lines
564 B
JavaScript

import { connect } from 'react-redux';
import * as SETTINGS from 'constants/settings';
import { doSetAppToTrayWhenClosed } from 'redux/actions/settings';
import { makeSelectClientSetting } from 'redux/selectors/settings';
import SettingClosingBehavior from './view';
const select = (state) => ({
toTrayWhenClosed: makeSelectClientSetting(SETTINGS.TO_TRAY_WHEN_CLOSED)(state),
});
const perform = (dispatch) => ({
setToTrayWhenClosed: (value) => dispatch(doSetAppToTrayWhenClosed(value)),
});
export default connect(select, perform)(SettingClosingBehavior);