import{h as x,u as h,j as e}from"./index-CHN8jahE.js";import{M as u}from"./modal-D_AU4URz.js";import{c as p}from"./utils-CkSf8FUe.js";const b=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],f=x("triangle-alert",b),N=({isOpen:n,onClose:a,onConfirm:l,title:i,description:d,confirmText:o="确认",cancelText:c="取消",variant:m="default",isLoading:t=!1})=>{const{t:s}=h(),r=m==="danger";return e.jsx(u,{isOpen:n,onClose:a,title:i,className:"max-w-sm",action:e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:a,disabled:t,className:"px-4 py-2 text-sm font-medium text-neutral-600 hover:text-neutral-900 transition-colors disabled:opacity-50",children:s(c)}),e.jsx("button",{onClick:l,disabled:t,className:p("px-4 py-2 text-sm font-medium rounded-lg transition-colors disabled:opacity-50",r?"bg-red-500 text-white hover:bg-red-600":"bg-neutral-900 text-white hover:bg-black"),children:s(t?"处理中...":o)})]}),children:e.jsxs("div",{className:"flex gap-4",children:[r&&e.jsx("div",{className:"shrink-0 w-10 h-10 rounded-full bg-red-50 flex items-center justify-center",children:e.jsx(f,{size:20,className:"text-red-500"})}),e.jsx("div",{className:"text-sm text-neutral-600 leading-relaxed pt-1",children:d})]})})};export{N as C,f as T};
