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