import { useEffect } from 'react'; import { X } from 'lucide-react'; interface ModalProps { open: boolean; onClose: () => void; title: string; children: React.ReactNode; } export function Modal({ open, onClose, title, children }: ModalProps) { useEffect(() => { if (open) document.body.style.overflow = 'hidden'; return () => { document.body.style.overflow = ''; }; }, [open]); if (!open) return null; return (

{title}

{children}
); }