"use client"; import React, { type FormEvent, type ReactNode } from "react"; interface FormModalProps { children: ReactNode; description?: string; isSaving: boolean; onClose: () => void; onSubmit: (event: FormEvent) => void; submitDisabled?: boolean; submitLabel: string; title: string; } export function FormModal({ children, description, isSaving, onClose, onSubmit, submitDisabled, submitLabel, title, }: FormModalProps) { return ( <>

{title}

{description ? (

{description}

) : null}
{children}
); }