'use client'; import { Building2, Mail } from 'lucide-react'; import type { FieldErrors, UseFormRegister, UseFormSetValue } from 'react-hook-form'; import { Input } from '@/components/ui/shared/Input'; export type OrganizationDetailsFormValues = { organizationName: string; organizationEmail: string; organizationType: 'CLINIC' | 'LAB'; }; type OrganizationDetailsFieldsProps = { register: UseFormRegister; errors: FieldErrors; organizationType: 'CLINIC' | 'LAB' | undefined; setValue: UseFormSetValue; }; export function OrganizationDetailsFields({ register, errors, organizationType, setValue, }: OrganizationDetailsFieldsProps) { return ( <> } /> } />
{errors.organizationType && (

{errors.organizationType.message}

)}
); }