'use client' import { zodResolver } from '@hookform/resolvers/zod' import Link from 'next/link' import { useForm } from 'react-hook-form' import { toast } from 'sonner' import { Button, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from 'ui' import { z } from 'zod' 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 You can manage email addresses in your{' '} email settings. )} /> ) }