import MyInput from "@frontend/components/user-input/my-input" import { cn } from "@frontend/lib/utils" import { FieldError, FieldValues, Path, UseFormRegister } from "react-hook-form" export default function FormInputField({ name, register, label, placeholder, type, error, className, inputClassName, disabled, }: { name: Path register: UseFormRegister label: string placeholder: string type: string error?: FieldError className?: string inputClassName?: string disabled?: boolean }) { return (
{error &&
{error.message}
}
) }