import { jsxs as d, jsx as t } from "react/jsx-runtime";
import { forwardRef as i } from "react";
import { cx as p } from "../../utils/classNames.js";
import { useArrowTheme as c } from "../../hooks/useArrowTheme.js";
const f = i(
  ({
    text: r,
    icon: e,
    variant: o = "primary",
    iconA11yLabel: b,
    inverse: s,
    className: m
  }, l) => {
    const n = c(), a = s ?? n.inverse;
    return r ? /* @__PURE__ */ d(
      "div",
      {
        ref: l,
        className: p(
          "tdds-promo-label",
          {
            "tdds-promo-label--secondary": o === "secondary",
            "tdds-promo-label--strong": o === "strong"
          },
          m
        ),
        "data-inverse": a ? "true" : void 0,
        children: [
          e ?? null,
          /* @__PURE__ */ t("span", { children: r })
        ]
      }
    ) : null;
  }
);
f.displayName = "PromoLabel";
export {
  f as PromoLabel
};
//# sourceMappingURL=PromoLabel.js.map
