'use client'; import React from 'react'; interface FormFieldProps { label: string; icon?: React.ElementType; children: React.ReactNode; required?: boolean; error?: string; hint?: string; } /** * Form field wrapper with label, optional icon, required indicator, and error/hint display. * Used for consistent form field layout throughout the app. */ export default function FormField({ label, icon: Icon, children, required = false, error, hint, }: FormFieldProps) { return (
{error}
)} {hint && !error && ({hint}
)}