import{t as e}from"./vendor-react-CAGJwf-T.js";import{t}from"./triangle-alert-CQ-4Schb.js";import{D as n,O as r}from"./index-Z_bdWDpJ.js";var i=e();function a({isOpen:e,title:a,message:o,confirmLabel:s=`Delete`,cancelLabel:c=`Cancel`,tone:l=`danger`,isLoading:u=!1,onConfirm:d,onCancel:f}){return(0,i.jsx)(r,{isOpen:e,onClose:f,title:a,size:`sm`,closeOnOverlay:!u,footer:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n,{variant:`outline`,onClick:f,disabled:u,children:c}),(0,i.jsx)(n,{variant:l===`danger`?`danger`:`primary`,onClick:d,isLoading:u,children:s})]}),children:(0,i.jsxs)(`div`,{className:`flex items-start gap-3`,children:[l===`danger`&&(0,i.jsx)(`span`,{className:`flex-shrink-0 flex items-center justify-center w-9 h-9 rounded-full bg-red-50 dark:bg-red-950/40 text-[var(--color-error)]`,children:(0,i.jsx)(t,{className:`w-[18px] h-[18px]`})}),(0,i.jsx)(`div`,{className:`text-[13px] leading-relaxed text-[var(--color-text-secondary)]`,children:o})]})})}export{a as t};