"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[6532],{96532:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var s=n(69060),c=n(66152),l=n(95705),o=n(66156),r=n(89940),a=n(70780),i=n(82496);const u=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedBucket:u}=e;const d=(0,o.Ab)(),[b,p]=(0,r.c)((()=>t(!0)),(e=>d((0,l.aW)(e))));if(!u)return null;return(0,i.jsx)(a.c,{title:"Delete Bucket",confirmText:"Delete",isOpen:n,titleIcon:(0,i.jsx)(c.sB6,{}),isLoading:b,onConfirm:()=>{p("DELETE","/api/v1/buckets/".concat(u),{name:u})},onClose:()=>t(!1),confirmationContent:(0,i.jsxs)(s.Fragment,{children:["Are you sure you want to delete bucket ",(0,i.jsx)("b",{children:u}),"? ",(0,i.jsx)("br",{}),"A bucket can only be deleted if it's empty."]})})}}}]);
//# sourceMappingURL=6532.71c2908a.chunk.js.map