import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Gy as t,Hy as n,zo as r}from"./index-DDwwBb9e.js";var i=e(t()),a=n();function o(e){let[t,n]=(0,i.useState)(!1),[o,s]=(0,i.useState)(),c=({id:e,name:t})=>{s({id:e,name:t}),n(!0)},l=()=>{o&&e({id:o.id,name:o.name}),n(!1),s(void 0)};return{showDeleteDialog:c,DeleteDialog:()=>(0,a.jsx)(r,{title:`Are you really sure?`,description:`Deleting "${o?.name??`this dataset`}" cannot be undone. Type 'delete' below to confirm:`,open:t,onClose:()=>{n(!1),s(void 0)},onConfirm:l})}}export{o as t};
//# sourceMappingURL=useDeleteDatasetConfirmation-BaeJzdGK.js.map