import{j as e,ac as a,k as i}from"../index.js";function n({warningText:t="",onClose:r,onConfirm:s}){return e.jsxs("div",{className:"w-full max-w-2xl bg-theme-bg-secondary rounded-lg shadow border-2 border-theme-modal-border overflow-hidden z-9999",children:[e.jsxs("div",{className:"relative px-6 py-5 border-b rounded-t border-theme-modal-border",children:[e.jsxs("div",{className:"w-full flex gap-x-2 items-center",children:[e.jsx(a,{className:"text-red-500 w-6 h-6",weight:"fill"}),e.jsx("h3",{className:"text-xl font-semibold text-red-500 overflow-hidden overflow-ellipsis whitespace-nowrap",children:"WARNING - This action is irreversible"})]}),e.jsx("button",{onClick:r,type:"button",className:"absolute top-4 right-4 transition-all duration-300 bg-transparent rounded-lg text-sm p-1 inline-flex items-center hover:bg-theme-modal-border hover:border-theme-modal-border hover:border-opacity-50 border-transparent border",children:e.jsx(i,{size:24,weight:"bold",className:"text-white"})})]}),e.jsx("div",{className:"h-full w-full overflow-y-auto",style:{maxHeight:"calc(100vh - 200px)"},children:e.jsx("div",{className:"py-7 px-9 space-y-2 flex-col",children:e.jsxs("p",{className:"text-white",children:[t.split("\\n").map((o,l)=>e.jsxs("span",{children:[o,e.jsx("br",{})]},l)),e.jsx("br",{}),e.jsx("br",{}),"Are you sure you want to proceed?"]})})}),e.jsxs("div",{className:"flex w-full justify-end items-center p-6 space-x-2 border-t border-theme-modal-border rounded-b",children:[e.jsx("button",{onClick:r,type:"button",className:"transition-all duration-300 bg-transparent text-white hover:opacity-60 px-4 py-2 rounded-lg text-sm border-none",children:"Cancel"}),e.jsx("button",{onClick:s,type:"submit",className:"transition-all duration-300 bg-red-500 light:text-white text-white hover:opacity-60 px-4 py-2 rounded-lg text-sm border-none",children:"Confirm"})]})]})}export{n as C};
