lbry-desktop/ui/component/headerProfileMenuButton/index.js

20 lines
678 B
JavaScript
Raw Normal View History

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';
import { selectMyChannelClaimIds } from 'redux/selectors/claims';
import { selectUserEmail, selectUserVerifiedEmail } from 'redux/selectors/user';
import HeaderProfileMenuButton from './view';
const select = (state) => ({
myChannelClaimIds: selectMyChannelClaimIds(state),
2022-05-09 13:05:29 +02:00
activeChannelClaim: selectActiveChannelClaim(state),
authenticated: selectUserVerifiedEmail(state),
email: selectUserEmail(state),
});
2022-05-09 13:05:29 +02:00
const perform = {
signOut: doSignOut,
};
export default connect(select, perform)(HeaderProfileMenuButton);