import { jsx as o } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import { useMemo as i } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
import { TypographyVariant as n } from "../Typography/types.js";
/* empty css                   */
import { getCapitalHeaderSubtitleByLegalEntity as s } from "./helpers.js";
import { useConfigContext as m } from "../../../core/ConfigContext/preact/context.js";
import { Header as l } from "../Header/Header.js";
const b = (r) => {
  const t = m().extraConfig?.legalEntity, a = i(() => {
    const e = s(t);
    return e ? { subtitleKey: e } : {};
  }, [t]);
  return /* @__PURE__ */ o(l, { ...r, ...a, subtitleConfig: { variant: n.CAPTION, classNames: "adyen-pe-capital-header__subtitle" } });
};
export {
  b as CapitalHeader
};
