import{aJ as c,ao as n,aF as r,bU as e,L as s}from"./app-k0jcl5PQ.js";const u="shared.confirmationPopup",a=s.encloseNamespace(u);l.defaultProps={confirmButtonVariant:"primary",cancelButtonVariant:"link"};function l(t){const[o,i]=c.useState(!1);return n.jsx(r,{title:t.title,closePopup:t.closePopup,children:n.jsxs(n.Fragment,{children:[t.children,n.jsxs(e,{children:[n.jsx(e.Cancel,{onClick:t.closePopup,variant:t.cancelButtonVariant,text:t.cancelButtonText||a("cancel")}),n.jsx(e.Submit,{onClick:()=>{i(!0),t.onClickConfirm()},text:t.confirmButtonText||a("confirm"),variant:t.confirmButtonVariant,showSpinner:o,disabled:t.disabledConfirmButton})]})]})})}export{l as C};
//# sourceMappingURL=CXr58ipf.chunk.js.map
