"use client" import { Field, FieldDescription, FieldLabel, } from "@/components/ui/field" interface FormFieldProps { label: string hint?: string error?: string required?: boolean children: React.ReactNode } function FormField({ label, hint, error, required, children }: FormFieldProps) { return ( {label} {required && *} {children} {hint && !error && {hint}} {error && {error}} ) } export { FormField, type FormFieldProps }