{"size": 670, "ext": "js", "max_stars_repo_path": "ui/component/headerProfileMenuButton/index.js", "max_stars_repo_name": "PythDev/lbry-desktop", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ui/component/headerProfileMenuButton/index.js", "max_issues_repo_name": "PythDev/lbry-desktop", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ui/component/headerProfileMenuButton/index.js", "max_forks_repo_name": "PythDev/lbry-desktop", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.2631578947, "max_line_length": 80, "alphanum_fraction": 0.7597014925}
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);
