lbry-desktop/ui/js/component/userEmailNew/index.js
2017-11-13 16:02:23 -05:00

19 lines
546 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import { doUserEmailNew, doUserInviteNew } from "redux/actions/user";
import {
selectEmailNewIsPending,
selectEmailNewErrorMessage,
} from "redux/selectors/user";
import UserEmailNew from "./view";
const select = state => ({
isPending: selectEmailNewIsPending(state),
errorMessage: selectEmailNewErrorMessage(state),
});
const perform = dispatch => ({
addUserEmail: email => dispatch(doUserEmailNew(email)),
});
export default connect(select, perform)(UserEmailNew);