'use client'; import { forwardRef } from 'react'; import { useFormStatus } from 'react-dom'; import { cn } from '@/lib/utils'; import { Label } from '@/components/ui/label'; import { Input } from '@/components/ui/input'; import { FormErrors } from './form-errors'; interface FormInputProps { id: string; label?: string; type?: string; placeholder?: string; required?: boolean; disabled?: boolean; errors?: Record; className?: string; defaultValue?: string; onBlur?: () => void; } export const FormInput = forwardRef( ( { id, label, type, placeholder, required, disabled, errors, className, defaultValue = '', onBlur, }, ref ) => { const { pending } = useFormStatus(); return (
{label ? ( ) : null}
); } ); FormInput.displayName = 'FormInput';