import React, { useState } from 'react'; import { Button, Input, Label } from 'xertica-ui/ui'; import { XerticaLogo } from 'xertica-ui/brand'; import { ArrowLeft } from 'lucide-react'; import { useNavigate } from 'react-router-dom'; import { AuthPageShell, SocialLoginButtons } from 'xertica-ui/blocks'; import { useTranslation } from 'react-i18next'; import { useBrandColors } from 'xertica-ui/hooks'; export function ForgotPasswordContent() { const navigate = useNavigate(); const { t } = useTranslation(); const { currentTheme } = useBrandColors(); const [email, setEmail] = useState(''); const [isLoading, setIsLoading] = useState(false); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); setIsLoading(true); await new Promise(resolve => setTimeout(resolve, 1500)); navigate('/verify-email', { state: { email } }); setIsLoading(false); }; const content = ( <>

{t('forgotPassword.heading')}

{t('forgotPassword.subheading')}

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