/* global React */ (function () { const T = window.SC_T; function Modal({ open, onClose, title, subtitle, children, footer }) { if (!open) return null; return (
e.stopPropagation()} style={{ width: 560, maxHeight: '80vh', background: T.surface, borderRadius: 16, boxShadow: '0 24px 60px rgba(17,24,39,0.25), 0 0 0 1px rgba(0,0,0,0.04)', display: 'flex', flexDirection: 'column', animation: 'sc-scale-in .25s cubic-bezier(0.16, 1, 0.3, 1)', overflow: 'hidden', }} >
{title}
{subtitle &&
{subtitle}
}
{children}
{footer && (
{footer}
)}
); } window.Modal = Modal; })();