import React, { useState } from 'react'; import { Button } from 'xertica-ui/ui'; import { XerticaLogo } from 'xertica-ui/brand'; import { ArrowLeft, Mail, CheckCircle2 } from 'lucide-react'; import { useNavigate, useLocation } from 'react-router-dom'; import { AuthPageShell, SocialLoginButtons } from 'xertica-ui/blocks'; import { useTranslation } from 'react-i18next'; import { useBrandColors } from 'xertica-ui/hooks'; export function VerifyEmailContent() { const navigate = useNavigate(); const location = useLocation(); const { t } = useTranslation(); const { currentTheme } = useBrandColors(); const email = location.state?.email || 'seu@email.com'; const [isResending, setIsResending] = useState(false); const [resendSuccess, setResendSuccess] = useState(false); const handleResend = async () => { setIsResending(true); setResendSuccess(false); await new Promise(resolve => setTimeout(resolve, 1500)); setIsResending(false); setResendSuccess(true); setTimeout(() => setResendSuccess(false), 3000); }; const content = ( <>

{t('verifyEmail.heading')}

{t('verifyEmail.instructionsSent')}

{email}

{t('verifyEmail.instructions')}

{t('verifyEmail.checkSpam')}
{resendSuccess && (
{t('verifyEmail.resentSuccess')}
)}

{t('verifyEmail.notReceived')}

console.log(`Login com ${provider}`)} /> ); return currentTheme === 'xertica' ? ( {content} ) : ( {content} ); }