lbry-desktop/ui/component/headerProfileMenuButton/index.js
2022-05-09 07:50:44 -04:00

19 lines
678 B
JavaScript

import { connect } from 'react-redux';
import { doSignOut } from 'redux/actions/app';
import { selectActiveChannelClaim } from 'redux/selectors/app';
import { selectMyChannelClaimIds } from 'redux/selectors/claims';
import { selectUserEmail, selectUserVerifiedEmail } from 'redux/selectors/user';
import HeaderProfileMenuButton from './view';
const select = (state) => ({
myChannelClaimIds: selectMyChannelClaimIds(state),
activeChannelClaim: selectActiveChannelClaim(state),
authenticated: selectUserVerifiedEmail(state),
email: selectUserEmail(state),
});
const perform = {
signOut: doSignOut,
};
export default connect(select, perform)(HeaderProfileMenuButton);