2021-12-20 09:29:51 -03:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doSignOut } from 'redux/actions/app';
|
2022-05-09 08:05:29 -03:00
|
|
|
import { selectActiveChannelClaim } from 'redux/selectors/app';
|
2022-02-18 05:14:54 -08:00
|
|
|
import { selectMyChannelClaimIds } from 'redux/selectors/claims';
|
2022-01-05 18:56:17 -08:00
|
|
|
import { selectUserEmail, selectUserVerifiedEmail } from 'redux/selectors/user';
|
2021-12-20 09:29:51 -03:00
|
|
|
import HeaderProfileMenuButton from './view';
|
|
|
|
|
|
|
|
const select = (state) => ({
|
2022-02-18 05:14:54 -08:00
|
|
|
myChannelClaimIds: selectMyChannelClaimIds(state),
|
2022-05-09 08:05:29 -03:00
|
|
|
activeChannelClaim: selectActiveChannelClaim(state),
|
2022-01-05 18:56:17 -08:00
|
|
|
authenticated: selectUserVerifiedEmail(state),
|
2021-12-20 09:29:51 -03:00
|
|
|
email: selectUserEmail(state),
|
|
|
|
});
|
|
|
|
|
2022-05-09 08:05:29 -03:00
|
|
|
const perform = {
|
|
|
|
signOut: doSignOut,
|
|
|
|
};
|
2021-12-20 09:29:51 -03:00
|
|
|
|
|
|
|
export default connect(select, perform)(HeaderProfileMenuButton);
|