"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[312],{312:function(e,n,t){t.r(n);var o=t(29439),i=(t(72791),t(51691)),r=t(9505),l=t(23508),c=t(38734),u=t(45248),s=t(87995),f=t(25469),a=t(80184);n.default=function(e){var n=e.closeDeleteModalAndRefresh,t=e.deleteOpen,p=e.selectedPolicy,d=(0,f.TL)(),h=(0,r.Z)((function(){return n(!0)}),(function(e){return d((0,s.Ih)(e))})),x=(0,o.Z)(h,2),y=x[0],j=x[1];if(!p)return null;return(0,a.jsx)(l.Z,{title:"Delete Policy",confirmText:"Delete",isOpen:t,titleIcon:(0,a.jsx)(c.NvT,{}),isLoading:y,onConfirm:function(){j("DELETE","/api/v1/policy/".concat((0,u.LL)(p)))},onClose:function(){return n(!1)},confirmationContent:(0,a.jsxs)(i.Z,{children:["Are you sure you want to delete policy ",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:p}),"?"]})})}}}]);
//# sourceMappingURL=312.aefc992a.chunk.js.map