import{j as e,dy as x,dz as h,dA as j,dB as m,dC as p,dD as u,dE as g,dF as r,f as i}from"./index-f9c70843.js";function b({children:t,onConfirm:n,description:l,asChild:d,open:o,setOpen:c,note:a=""}){return e.jsxs(x,{open:o,onOpenChange:c,children:[e.jsx(h,{asChild:d,tabIndex:-1,children:t}),e.jsxs(j,{children:[e.jsx(m,{children:e.jsx(p,{children:e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"pr-2",children:"Delete"}),e.jsx(u,{className:"h-6 w-6 pl-1 text-foreground",strokeWidth:1.5})]})})}),e.jsxs("span",{children:["Are you sure you want to delete the selected"," ",l??"component","?",e.jsx("br",{}),a&&e.jsxs(e.Fragment,{children:[a,e.jsx("br",{})]}),"Note: This action is irreversible."]}),e.jsxs(g,{children:[e.jsx(r,{asChild:!0,children:e.jsx(i,{onClick:s=>s.stopPropagation(),className:"mr-1",variant:"outline",children:"Cancel"})}),e.jsx(r,{asChild:!0,children:e.jsx(i,{type:"submit",variant:"destructive",onClick:s=>{n(s)},children:"Delete"})})]})]})]})}export{b as D};
