import type { ReactNode } from "react"; import { Button } from "./button"; import { Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader, DialogTitle, } from "./dialog"; export function FormDialog({ open, onOpenChange, title, cancelLabel, children, }: { open: boolean; onOpenChange: (open: boolean) => void; title: string; cancelLabel: string; children: ReactNode; }) { return ( {title} {children} }>{cancelLabel} ); }