import React from 'react'; import { X } from 'lucide-react'; export interface ModalProps { isOpen: boolean; onClose: () => void; title?: string; children: React.ReactNode; footerActions?: React.ReactNode; size?: 'sm' | 'md' | 'lg' | 'xl'; showCloseButton?: boolean; } export const Modal: React.FC = ({ isOpen, onClose, title, children, footerActions, size = 'md', showCloseButton = false, }) => { if (!isOpen) return null; const sizeClasses = { sm: 'max-w-sm', md: 'max-w-md', lg: 'max-w-lg', xl: 'max-w-xl', }; return (
{/* Backdrop click closer */}
{/* Modal Container */}
{showCloseButton && ( )}
{title &&

{title}

}
{children}
{footerActions && (
{footerActions}
)}
); };