import { jsx as s } from "react/jsx-runtime";
import { Icon as c } from "./index-Icon.js";
import { getColorsBasedOnStatus as a } from "./index-status-badge-get-colors-based-on-status.js";
import "react";
import f from "./index-StatusBadgeIcon.module.scss.js";
const v = (u) => {
  const {
    status: o,
    variant: m = "small",
    hasIconReverse: r,
    iconVariant: p,
    iconName: i
  } = u;
  if (!o)
    return null;
  const {
    reverseColor: n,
    textColor: C,
    bgColor: l,
    borderColor: d,
    iconColor: t
  } = a(o);
  let {
    iconName: e
  } = a(o);
  return i && (e = i), p === "none" && (e = "NO_ICON"), m === "big" ? s(c, {
    spin: o === "publishing" || o === "queued",
    forceSize: 24,
    hasCircle: !0,
    fillColor: r ? l : t,
    color: r ? n : "--n000",
    className: f.bigIcon,
    children: e
  }) : s(c, {
    spin: o === "publishing" || o === "queued",
    hasCircle: !0,
    fillColor: r ? l : t,
    color: r ? n : "--n000",
    children: e
  });
};
export {
  v as StatusBadgeIcon
};
