"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[9968],{39968:function(e,t,n){n.r(t);var u=n(29439),o=(n(72791),n(51691)),r=n(9505),c=n(23508),i=n(38734),l=n(87995),s=n(25469),a=n(80184);t.default=function(e){var t=e.closeDeleteModalAndRefresh,n=e.deleteOpen,f=e.selectedBucket,d=(0,s.TL)(),k=(0,r.Z)((function(){return t(!0)}),(function(e){return d((0,l.Ih)(e))})),p=(0,u.Z)(k,2),b=p[0],h=p[1];if(!f)return null;return(0,a.jsx)(c.Z,{title:"Delete Bucket",confirmText:"Delete",isOpen:n,titleIcon:(0,a.jsx)(i.NvT,{}),isLoading:b,onConfirm:function(){h("DELETE","/api/v1/buckets/".concat(f),{name:f})},onClose:function(){return t(!1)},confirmationContent:(0,a.jsxs)(o.Z,{children:["Are you sure you want to delete bucket ",(0,a.jsx)("b",{children:f}),"? ",(0,a.jsx)("br",{}),"A bucket can only be deleted if it's empty."]})})}}}]);
//# sourceMappingURL=9968.481540ab.chunk.js.map