;
{
  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] = "21565df9-8ea4-4f28-a5e7-c2e319109f2e", e._sentryDebugIdIdentifier = "sentry-dbid-21565df9-8ea4-4f28-a5e7-c2e319109f2e");
  } catch (e) {
  }
}
;
import { jsxs, jsx } from "preact/jsx-runtime";
import { V as Button } from "./StoreProvider-CqQrndhS.js";
const 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 }) })
] });
export {
  ActionBar as A
};
