import{j as e}from"./query-Bw69rE6b.js";import{m as o,a0 as x,B as n}from"./index-CoUu6FiM.js";function f({open:a,onClose:t,onConfirm:l,title:c,description:s,confirmLabel:m="Confirm",cancelLabel:d="Cancel",tone:i="danger",loading:r}){return e.jsx(o,{open:a,onClose:t,preventBackdropClose:!0,hideCloseButton:!0,size:"sm",footer:e.jsxs(e.Fragment,{children:[e.jsx(n,{variant:"ghost",size:"sm",onClick:t,disabled:r,children:d}),e.jsx(n,{variant:i==="danger"?"danger":"primary",size:"sm",onClick:l,loading:r,autoFocus:!0,children:m})]}),children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:i==="danger"?"mt-0.5 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-critical-soft text-critical":"mt-0.5 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-accent-soft text-accent-ink",children:e.jsx(x,{size:18})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h2",{className:"text-sm font-semibold text-ink",children:c}),s&&e.jsx("p",{className:"mt-1 text-sm text-ink-muted",children:s})]})]})})}export{f as A};
