import { jsx as l } from "react/jsx-runtime";
import i from "../../utils/classNames.js";
import { LIGHT as o, LARGE as n, SMALL as c, TOP as m } from "./StatusBarConstants.js";
const x = (s) => {
  const { label: e, size: t, className: a = "" } = s;
  if (!e.value)
    return null;
  const r = i(
    "display-flex",
    "ellipsis-1",
    "flex-1-0",
    "justify-content-center",
    e.color ?? "text-color-dark",
    e.alignment === m && "width-0",
    t === c && "text-size-16",
    t === n && "text-size-h3",
    e.weight !== o && "text-bold",
    e.className
  );
  return /* @__PURE__ */ l("div", { className: a, children: /* @__PURE__ */ l("span", { className: r, children: e.value }) });
};
export {
  x as default
};
//# sourceMappingURL=StatusBarLabel.js.map
