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);