import { Input, type InputProps } from "@/components/ui"; import { type Control, type FieldValues, type UseControllerProps, useController, } from "react-hook-form"; type Props = Omit< UseControllerProps, "control" | "defaultValue" | "rules" > & Omit & { control: Control }; export const FormInput = ({ control, name, disabled, shouldUnregister, ...rest }: Props) => { const { field, fieldState: { error }, } = useController({ control, name, disabled, shouldUnregister, }); return ; };