import { AppDialogSize } from "./AppDialog"; import type { FormSchema } from "../../../types"; export interface FormDialogProps { open: boolean; onOpenChange: (open: boolean) => void; data: T | null; title: (data: T) => string; headerBadge?: (data: T) => React.ReactNode; schema: FormSchema; onSave?: (data: T) => Promise; customFooter?: (data: T) => React.ReactNode; defaultEditing?: boolean; footerActions?: boolean; saveLabel?: string; cancelLabel?: string; hideSaveIcon?: boolean; /** Largeur maximale à partir de `sm`. `4xl` par défaut. */ size?: AppDialogSize; /** * Classe de largeur brute, breakpoint compris (`"sm:max-w-4xl"`). * @deprecated Préférer `size`. */ maxWidth?: string; isLoading?: boolean; } export default function FormDialog({ open, onOpenChange, data, title, headerBadge, schema, onSave, customFooter, defaultEditing, footerActions, saveLabel, cancelLabel, hideSaveIcon, size, maxWidth, isLoading, }: FormDialogProps): React.ReactElement | null; //# sourceMappingURL=FormDialog.d.ts.map