import React from 'react'; interface ModalProps { title: string; children: React.ReactNode; onClose?: () => void; footerLabel?: string; footerTitle?: string; onFooterClick?: () => void; } export const Modal = ({ title, children, onClose, footerLabel, footerTitle, onFooterClick, }: ModalProps) => { return (
{ if (e.target === e.currentTarget && onClose) onClose(); }} >

{title}

{children}
{footerLabel && (
)}
); };