import{l,o as i,e8 as a,k as u,j as e,E as p,a9 as n,g as d,h as P,i as h}from"./app-BgLa5dit.js";function A(t){const s=l(),r=i(a.getContentPartner(t.contentPartnerId)),o=u();async function c(){try{await o(a.deleteContentPartner(t.contentPartnerId)),t.closePopup(),s.success("Content partner deleted successfully"),d.trigger({application:h.CONTENT_PARTNERS,action:P.ContentPartners.CONTENT_PARTNERS},{replace:!0})}catch{s.error("Failed to delete content partner")}}return e.jsxs(p,{title:"Delete Channel",closePopup:t.closePopup,showLoadingSpinner:!r.hasCompleted,children:[e.jsxs("p",{children:["Are you sure you want to delete this channel ",e.jsx("strong",{children:r.data.name}),"?"]}),e.jsxs(n,{children:[e.jsx(n.Cancel,{onClick:t.closePopup}),e.jsx(n.Submit,{onClick:c,variant:"danger",text:"Delete"})]})]})}export{A as DeleteContentPartnerView};
//# sourceMappingURL=BitU_737.chunk.js.map
