import { useState, type FormEvent } from 'react'; import type { VerifyEmailFormProps } from './types.js'; /** * Email verification form — 6-digit code input with resend option. * Styled via CSS custom properties (inherits --bl-* from host app). */ export function VerifyEmailForm({ onSubmit, onResend, isLoading = false, error, success, email, className, }: VerifyEmailFormProps) { const [code, setCode] = useState(''); function handleSubmit(e: FormEvent) { e.preventDefault(); onSubmit(code); } return (