interface FormProps { title?: string dimensions?: string onSubmit: (event: React.FormEvent) => void children: React.ReactNode } function Form({ title, onSubmit, dimensions = 'max-w-xs', children }: FormProps) { return (
{ title &&

{title}

} {children}
); } export default Form;