import { jsx as g } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import o from "classnames";
import { TagVariant as e } from "./types.js";
/* empty css         */
import { memo as m } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/compat/dist/compat.module.js";
const T = m(({ variant: p = e.DEFAULT, label: t, children: a }) => /* @__PURE__ */ g(
  "div",
  {
    className: o("adyen-pe-tag", {
      // [TODO]: These Bento tag variants definitions are outdated
      "adyen-pe-tag--success": p === e.SUCCESS,
      "adyen-pe-tag--default": p === e.DEFAULT,
      "adyen-pe-tag--warning": p === e.WARNING,
      "adyen-pe-tag--error": p === e.ERROR,
      "adyen-pe-tag--primary": p === e.WHITE,
      "adyen-pe-tag--light": p === e.LIGHT,
      "adyen-pe-tag--light-with-outline": p === e.LIGHT_WITH_OUTLINE,
      // Adopted from the latest Bento tag variants spec
      "adyen-pe-tag--blue": p === e.BLUE
    }),
    children: a || t
  }
));
export {
  T as Tag
};
