import{r as u,j as e,B as t}from"./main-pzSpmpV2.js";import{D as x,a as D,b as h,c as p,d as j,e as f}from"./dialog-CwPbkvSr.js";function b({isOpen:a,itemType:r,itemName:l,isDeleting:n,onClose:s,onDelete:c}){const i=u.useRef(null);return e.jsx(x,{open:a,onOpenChange:s,children:e.jsxs(D,{onOpenAutoFocus:d=>{var o;d.preventDefault(),(o=i.current)==null||o.focus()},children:[e.jsxs(h,{children:[e.jsxs(p,{children:["Are you sure to delete ",r," ?"]}),e.jsxs(j,{children:["This action cannot be undone. This will permanently delete ",l,"."]})]}),e.jsxs(f,{children:[e.jsx(t,{ref:i,variant:"outline",onClick:s,disabled:n,children:"Cancel"}),e.jsx(t,{variant:"destructive",onClick:c,disabled:n,children:n?"Deleting...":"Delete"})]})]})})}export{b as D};
//# sourceMappingURL=delete-dialog-DT_Wug03.js.map
