'use client'; import { forwardRef, type InputHTMLAttributes } from 'react'; interface FormFieldProps extends InputHTMLAttributes { label: string; hint?: string; error?: string; } export const FormField = forwardRef( function FormField({ label, hint, error, id, className = '', ...rest }, ref) { const inputId = id ?? rest.name ?? label.toLowerCase().replace(/\s+/g, '-'); return (
{error ? (

{error}

) : hint ? (

{hint}

) : null}
); }, );