'use client' import { zodResolver } from '@hookform/resolvers/zod' import Link from 'next/link' 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_, Select_Shadcn_, SelectContent_Shadcn_, SelectItem_Shadcn_, SelectTrigger_Shadcn_, SelectValue_Shadcn_, } from 'ui' const FormSchema = z.object({ email: z .string({ required_error: 'Please select an email to display.', }) .email(), }) export default function SelectForm() { const form = useForm>({ resolver: zodResolver(FormSchema), }) function onSubmit(data: z.infer) { toast('You submitted the following values:', { description: (
          {JSON.stringify(data, null, 2)}
        
), }) } return (
( Email m@example.com m@google.com m@support.com You can manage email addresses in your{' '} email settings. )} />
) }