import { XCircleIcon } from "@phosphor-icons/react"; import type { ReactNode } from "react"; interface ModalProps { isOpen: boolean; onClose?: () => void; children: ReactNode; } export function Modal({ isOpen, onClose, children }: ModalProps) { if (!isOpen) return null; return (