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