import { jsx as s } from "react/jsx-runtime";
import m from "@mui/material/Chip";
import { toMuiColor as n, statusToColor as p } from "./types.js";
function c({
  status: o,
  size: t = "sm",
  label: l,
  sx: r
}) {
  const a = p(o), i = n(a), e = l ?? o.charAt(0).toUpperCase() + o.slice(1);
  return /* @__PURE__ */ s(
    m,
    {
      label: e,
      color: i === "default" || i === "inherit" ? void 0 : i,
      variant: "outlined",
      size: t === "xs" || t === "sm" ? "small" : "medium",
      sx: {
        fontWeight: 500,
        fontSize: t === "xs" ? "var(--ov-text-xs)" : "var(--ov-text-sm)",
        ...typeof r == "object" && !Array.isArray(r) ? r : {}
      }
    }
  );
}
c.displayName = "StatusPill";
export {
  c as S
};
