import { type FormEvent, type ReactNode } from 'react' interface FormModalProps { title: string onClose: () => void onSubmit: (e: FormEvent) => void children: ReactNode submitLabel?: string isSubmitting?: boolean } export function FormModal({ title, onClose, onSubmit, children, submitLabel = 'Save', isSubmitting, }: FormModalProps) { return (