import{j as a}from"./app-C796L9fe.js";import{T as x}from"./triangle-alert-CZVVKe3I.js";import{X as c}from"./useSwipeDrawer-n_5l3Iw6.js";const h=({isOpen:s,onClose:e,onConfirm:r,title:l="Hapus Data",message:n="Apakah Anda yakin ingin menghapus data ini secara permanen? Tindakan ini tidak dapat dibatalkan.",confirmText:i="Hapus",cancelText:d="Batal"})=>s?a.jsx("div",{className:"modal-overlay",onClick:t=>{t.target===t.currentTarget&&e()},children:a.jsxs("div",{className:"modal-container max-w-md",children:[a.jsxs("div",{className:"modal-header",children:[a.jsxs("div",{children:[a.jsxs("h3",{className:"text-base font-semibold text-slate-800 dark:text-slate-100 flex items-center gap-2",children:[a.jsx(x,{size:18,className:"text-rose-500"}),l]}),a.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-0.5",children:"Konfirmasi Tindakan"})]}),a.jsx("button",{onClick:e,type:"button",className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-600 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 transition",children:a.jsx(c,{size:18})})]}),a.jsx("div",{className:"p-6",children:a.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-350 leading-relaxed",children:n})}),a.jsxs("div",{className:"shrink-0 px-6 py-4 border-t border-slate-200 dark:border-slate-700 bg-slate-50/80 dark:bg-slate-900/50 flex justify-end gap-3",children:[a.jsx("button",{onClick:e,type:"button",className:"btn-secondary",children:d}),a.jsx("button",{onClick:()=>{r(),e()},type:"button",className:"btn-danger",children:i})]})]})}):null;export{h as D};
