"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),r=t(9505),l=t(23508),c=t(29945),u=t(45248),s=t(87995),a=t(81551),f=t(80184);n.default=function(e){var n=e.closeDeleteModalAndRefresh,t=e.deleteOpen,p=e.selectedPolicy,d=(0,a.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,f.jsx)(l.Z,{title:"Delete Policy",confirmText:"Delete",isOpen:t,titleIcon:(0,f.jsx)(c.NvT,{}),isLoading:y,onConfirm:function(){j("DELETE","/api/v1/policy/".concat((0,u.LL)(p)))},onClose:function(){return n(!1)},confirmationContent:(0,f.jsxs)(i.Fragment,{children:["Are you sure you want to delete policy ",(0,f.jsx)("br",{}),(0,f.jsx)("b",{children:p}),"?"]})})}}}]);
//# sourceMappingURL=312.04cab7e8.chunk.js.map