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

16 lines
479 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import HeaderMenuButtons from './view';
import { selectUserVerifiedEmail, selectUser } from 'redux/selectors/user';
import { doOpenModal } from 'redux/actions/app';
const select = (state) => ({
authenticated: selectUserVerifiedEmail(state),
user: selectUser(state),
});
const perform = (dispatch) => ({
doOpenModal: (id, params) => dispatch(doOpenModal(id, params)),
});
export default connect(select, perform)(HeaderMenuButtons);