"use client"; import { X } from "lucide-react"; import { Button } from "./button"; export function Modal({ title, open, onClose, children }: { title: string; open: boolean; onClose: () => void; children: React.ReactNode; }) { if (!open) { return null; } return (