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

23 lines
600 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import {
selectEmailNewErrorMessage,
selectEmailToVerify,
doUserCheckIfEmailExists,
doClearEmailEntry,
selectEmailDoesNotExist,
selectEmailAlreadyExists,
} from 'lbryinc';
import UserEmailReturning from './view';
const select = state => ({
errorMessage: selectEmailNewErrorMessage(state),
emailToVerify: selectEmailToVerify(state),
emailDoesNotExist: selectEmailDoesNotExist(state),
emailExists: selectEmailAlreadyExists(state),
});
export default connect(select, {
doUserCheckIfEmailExists,
doClearEmailEntry,
})(UserEmailReturning);