import{j as e}from"./ui-vendor-Cn57k9R1.js";import{e as i,a9 as o}from"./index-DT-X9ySe.js";const x=({open:l,onClose:r,title:t,children:d,footer:s})=>l?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-foreground/30 z-50",onClick:r}),e.jsxs("div",{className:i("fixed right-0 top-0 h-full w-[480px] max-w-full bg-card shadow-xl z-50 flex flex-col","animate-in slide-in-from-right duration-300"),children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border",children:[e.jsx("h2",{className:"text-lg font-semibold text-foreground font-body",children:t}),e.jsx("button",{onClick:r,className:"p-1.5 rounded-lg hover:bg-muted/50 text-muted-foreground",children:e.jsx(o,{className:"w-5 h-5"})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:d}),s&&e.jsx("div",{className:"border-t border-border px-6 py-4 flex items-center gap-3 justify-end",children:s})]})]}):null;export{x as S};
