import { Icon } from "./Icon"; type Props = { label: string; name: string; error?: string; hint?: string; optional?: boolean; } & React.InputHTMLAttributes; export function Field({ label, name, error, hint, optional, ...rest }: Props) { const id = rest.id ?? `f-${name}`; return ( ); } export function SelectField({ label, name, error, hint, children, ...rest }: { label: string; name: string; error?: string; hint?: string; children: React.ReactNode } & React.SelectHTMLAttributes) { const id = rest.id ?? `f-${name}`; return ( ); } export function TextareaField({ label, name, error, hint, optional, ...rest }: { label: string; name: string; error?: string; hint?: string; optional?: boolean } & React.TextareaHTMLAttributes) { const id = rest.id ?? `f-${name}`; return (