import React from 'react'; import { Icon } from './Icon'; import { Stack } from './Stack'; import { Text } from './Text'; import { LucideIcon } from 'lucide-react'; interface FormFieldProps { label: string; icon?: LucideIcon; children: React.ReactNode; required?: boolean; error?: string; hint?: string; } export function FormField({ label, icon, children, required = false, error, hint, }: FormFieldProps) { return ( {children} {error && ( {error} )} {hint && !error && ( {hint} )} ); }