f095081c71
* Refactor header Component, split into smaller components and remove what is unused * fix upload menu * better centering for backout title * cleanup Co-authored-by: Rafael <rafael.saes@odysee.com>
18 lines
670 B
JavaScript
18 lines
670 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doOpenModal } from 'redux/actions/app';
|
|
import { selectActiveChannelClaim } from 'redux/selectors/app';
|
|
import { selectUserEmail, selectUserVerifiedEmail } from 'redux/selectors/user';
|
|
import * as MODALS from 'constants/modal_types';
|
|
import HeaderProfileMenuButton from './view';
|
|
|
|
const select = (state) => ({
|
|
activeChannelClaim: selectActiveChannelClaim(state),
|
|
email: selectUserEmail(state),
|
|
authenticated: selectUserVerifiedEmail(state),
|
|
});
|
|
|
|
const perform = (dispatch) => ({
|
|
openSignOutModal: () => dispatch(doOpenModal(MODALS.SIGN_OUT)),
|
|
});
|
|
|
|
export default connect(select, perform)(HeaderProfileMenuButton);
|