All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.admin.resources.assets.ConfirmDialog-hx7XKLbN.js Maven / Gradle / Ivy

There is a newer version: 26.0.7
Show newest version
import{jsxs as D,jsx as c}from"react/jsx-runtime";import{useState as M}from"react";import{a as k,M as x,i as d,B as m,q as B}from"./main-C7ps2lmX.js";const V=n=>{const[a,t]=M(!1);function i(){t(r=>!r)}return[i,()=>c(j,{...n,open:a,toggleDialog:i},"confirmDialog")]},j=({titleKey:n,messageKey:a,noCancelButton:t,cancelButtonLabel:i,continueButtonLabel:l,continueButtonVariant:r,onConfirm:f,onCancel:e,children:u,open:p=!0,variant:h=B.small,toggleDialog:s,confirmButtonDisabled:C})=>{const{t:o}=k();return D(x,{title:o(n),isOpen:p,onClose:s,variant:h,actions:[c(d,{id:"modal-confirm","data-testid":"confirm",isDisabled:C,variant:r||m.primary,onClick:()=>{f(),s()},children:o(l||"continue")},"confirm"),!t&&c(d,{id:"modal-cancel","data-testid":"cancel",variant:m.link,onClick:()=>{e&&e(),s()},children:o(i||"cancel")},"cancel")],children:[!a&&u,a&&o(a)]})};export{j as C,V as u};
//# sourceMappingURL=ConfirmDialog-hx7XKLbN.js.map




© 2015 - 2025 Weber Informatics LLC | Privacy Policy