import React from 'react'; import { X } from 'lucide-react'; import './Modal.css'; interface ModalProps { isOpen: boolean; onClose: () => void; title: string; children: React.ReactNode; size?: 'sm' | 'md' | 'lg' | 'xl'; } const Modal: React.FC = ({ isOpen, onClose, title, children, size = 'md' }) => { if (!isOpen) return null; const handleBackdropClick = (e: React.MouseEvent) => { if (e.target === e.currentTarget) { onClose(); } }; return (

{title}

{children}
); }; export default Modal;