'use client'; import * as React from 'react'; import { useTranslations } from 'next-intl'; import { RefreshCwIcon } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Field, FieldLabel } from '@/components/ui/field'; import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, } from '@/components/ui/input-otp'; import { AuthHeading } from '@/components/auth/auth-shell'; import { cn } from '@/lib/utils'; interface OTPFormProps { code: string; setCode: (val: string) => void; loginCodeTip: React.ReactNode; loginCooldown: number; isPending: boolean; onResend: () => void; onSubmit: () => void; } export function OTPForm({ code, setCode, loginCodeTip, loginCooldown, isPending, onResend, onSubmit, }: OTPFormProps) { const t = useTranslations('auth.otp'); return (
); }