import { useState } from 'preact/hooks'; import { Eye, EyeOff, Send, X } from 'lucide-preact'; import StandalonePageFrame from '@/components/StandalonePageFrame'; import { t } from '@/lib/i18n'; interface RecoverTwoFactorPageProps { values: { email: string; password: string; recoveryCode: string }; onChange: (next: { email: string; password: string; recoveryCode: string }) => void; onSubmit: () => void; onCancel: () => void; } export default function RecoverTwoFactorPage(props: RecoverTwoFactorPageProps) { const [showPassword, setShowPassword] = useState(false); return (