import React from 'react' import { connect } from 'react-redux'; import { Popup } from 'UI' import { resendEmailVerification } from 'Duck/user' import { toast } from 'react-toastify'; function EmailVerificationMessage(props) { const { email } = props; const send = () => { props.resendEmailVerification(email).then(function() { toast.success(`Verification email sent to ${email}`); }) } return ( Verify your registered email. Resend } content={ `We've sent a verification email to "${email}" please follow the instructions in it to use OpenReplay uninterruptedly.` } /> ) } export default connect(null, { resendEmailVerification })(EmailVerificationMessage)