import React, { useState } from 'react'; import { toast } from 'react-toastify'; import { useStore } from 'App/mstore'; import { Tooltip } from 'UI'; function EmailVerificationMessage(props) { const { userStore } = useStore(); const [sent, setSent] = useState(false); const { email } = props; const send = () => { userStore.resendEmailVerification(email).then(() => { toast.success(`Verification email sent to ${email}`); setSent(true); }); }; return !sent ? (
Please, verify your email.{' '} Resend
) : null; } export default EmailVerificationMessage;