import { Control, FieldPath, FieldValues } from "react-hook-form" import type { ComponentProps } from "react" import { FormField, FormItem, FormLabel, FormControl, Input, FormDescription, FormMessage, } from "@repo/ui" interface FormControlledInputProps< TFieldValues extends FieldValues = FieldValues, > { control: Control name: FieldPath label: string description?: string inputProps?: ComponentProps } export function FormControlledInput< TFieldValues extends FieldValues = FieldValues, >({ control, name, label, description, inputProps, }: FormControlledInputProps) { return ( ( {label} {description && {description}} )} /> ) }