import type { ReactNode } from "react"; import { Button } from "./Button"; type ModalProps = { open: boolean; title: string; children: ReactNode; onClose: () => void; }; export function Modal({ open, title, children, onClose }: ModalProps) { if (!open) { return null; } return (
{children}
); }