"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[9968],{39968:function(e,t,n){n.r(t);var u=n(29439),r=n(72791),o=n(29945),c=n(87995),i=n(81551),l=n(9505),s=n(23508),a=n(80184);t.default=function(e){var t=e.closeDeleteModalAndRefresh,n=e.deleteOpen,f=e.selectedBucket,d=(0,i.TL)(),k=(0,l.Z)((function(){return t(!0)}),(function(e){return d((0,c.Ih)(e))})),p=(0,u.Z)(k,2),b=p[0],h=p[1];if(!f)return null;return(0,a.jsx)(s.Z,{title:"Delete Bucket",confirmText:"Delete",isOpen:n,titleIcon:(0,a.jsx)(o.NvT,{}),isLoading:b,onConfirm:function(){h("DELETE","/api/v1/buckets/".concat(f),{name:f})},onClose:function(){return t(!1)},confirmationContent:(0,a.jsxs)(r.Fragment,{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.741ebf65.chunk.js.map