'use client' import { zodResolver } from '@hookform/resolvers/zod' import { useForm } from 'react-hook-form' import { toast } from 'sonner' import { z } from 'zod' import { Button, Form_Shadcn_, FormControl_Shadcn_, FormDescription_Shadcn_, FormField_Shadcn_, FormItem_Shadcn_, FormLabel_Shadcn_, FormMessage_Shadcn_, InputOTP, InputOTPGroup, InputOTPSlot, } from 'ui' const FormSchema = z.object({ pin: z.string().min(6, { message: 'Your one-time password must be 6 characters.', }), }) export default function InputOTPForm() { const form = useForm>({ resolver: zodResolver(FormSchema), defaultValues: { pin: '', }, }) function onSubmit(data: z.infer) { toast('You submitted the following values:', { description: (
          {JSON.stringify(data, null, 2)}
        
), }) } return (
( One-Time Password Please enter the one-time password sent to your phone. )} />
) }