import { Input, InputProps } from "@/app/_components/ui/input" import { LucideIcon } from "lucide-react" import { FieldError, UseFormRegisterReturn } from "react-hook-form" interface FormFieldProps extends Omit { id?: string label: string icon?: LucideIcon error?: FieldError registration: UseFormRegisterReturn } export function ReactHookFormField({ id, label, icon: Icon, error, registration, className, ...props }: FormFieldProps) { return (
{Icon && } {error &&

{error.message}

}
) }