import type { CSSProperties, ReactNode } from "react"; interface FormFieldProps { label: ReactNode; children: ReactNode; error?: string; required?: boolean; style?: React.CSSProperties; } export default function FormField({ label, children, error, required, style, }: FormFieldProps) { return (
{children} {error && {error}}
); }