2021-12-20 13:29:51 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import HeaderMenuButtons from './view';
|
2022-06-03 15:43:31 +02:00
|
|
|
import { selectUserVerifiedEmail, selectUser } from 'redux/selectors/user';
|
2022-03-09 19:05:37 +01:00
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
2021-12-20 13:29:51 +01:00
|
|
|
|
|
|
|
const select = (state) => ({
|
|
|
|
authenticated: selectUserVerifiedEmail(state),
|
|
|
|
user: selectUser(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
2022-03-09 19:05:37 +01:00
|
|
|
doOpenModal: (id, params) => dispatch(doOpenModal(id, params)),
|
2021-12-20 13:29:51 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(HeaderMenuButtons);
|