import { useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { TaxExemptionCreateSchema } from '@lunarfront/shared/schemas' import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { Textarea } from '@/components/ui/textarea' interface TaxExemptionFormProps { accountId: string onSubmit: (data: Record) => void loading?: boolean } export function TaxExemptionForm({ accountId, onSubmit, loading }: TaxExemptionFormProps) { const { register, handleSubmit, formState: { errors }, } = useForm({ resolver: zodResolver(TaxExemptionCreateSchema), defaultValues: { accountId, certificateNumber: '', }, }) return (
{errors.certificateNumber && (

{errors.certificateNumber.message}

)}