@adyen/kyc-components
Version:
This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.
34 lines (33 loc) • 1.64 kB
JavaScript
try {
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "69d0f348-8d52-450a-9fd8-0db607da2028", e._sentryDebugIdIdentifier = "sentry-dbid-69d0f348-8d52-450a-9fd8-0db607da2028");
} catch (e) {}
import { t as Button } from "./Button-oj6H8OrC.js";
import { jsx, jsxs } from "preact/jsx-runtime";
//#region src/components/Shared/DropinLayout/ActionBar/ActionBar.tsx
/** @deprecated use <div flex>[left-buttons]<Spacer />[right-buttons]</div>*/
var ActionBar = ({ onNext, onBack, onHome, homeButtonLabel, backButtonLabel, nextButtonLabel, hideBackButton, hideNextButton, nextButtonDisabled = false }) => /* @__PURE__ */ jsxs("div", {
className: "adyen-action-bar",
children: [(onBack || onNext) && /* @__PURE__ */ jsxs("div", {
className: "adyen-action-bar__action",
children: [onBack && !hideBackButton && backButtonLabel && /* @__PURE__ */ jsx(Button, {
variant: "secondary",
onClick: () => onBack(),
testId: "backBtn",
children: backButtonLabel
}), onNext && !hideNextButton && nextButtonLabel && /* @__PURE__ */ jsx(Button, {
onClick: onNext,
disabled: nextButtonDisabled,
children: nextButtonLabel
})]
}), onHome && homeButtonLabel && /* @__PURE__ */ jsx("div", {
className: "adyen-action-bar__action",
children: /* @__PURE__ */ jsx(Button, {
variant: "secondary",
onClick: () => onHome(),
children: homeButtonLabel
})
})]
});
//#endregion
export { ActionBar as t };