import { connect } from 'react-redux'; import { doEnterSettingsPage, doExitSettingsPage } from 'redux/actions/settings'; import { selectDaemonSettings } from 'redux/selectors/settings'; import { selectUserVerifiedEmail } from 'redux/selectors/user'; import SettingsPage from './view'; const select = (state) => ({ daemonSettings: selectDaemonSettings(state), isAuthenticated: selectUserVerifiedEmail(state), }); const perform = (dispatch) => ({ enterSettings: () => dispatch(doEnterSettingsPage()), exitSettings: () => dispatch(doExitSettingsPage()), }); export default connect(select, perform)(SettingsPage);