@uva-glass/component-library
Version:
React components UvA
34 lines (33 loc) • 999 B
JavaScript
import { jsxs as _, jsx as p } from "react/jsx-runtime";
import { c as e } from "../../clsx-OuTLNxxd.js";
import { Icon as a } from "../Icon/Icon.js";
import '../../assets/StatusPill.css';const l = {
"status-pill": "_status-pill_1i67r_1",
"status-pill__possible": "_status-pill__possible_1i67r_10",
"status-pill__impossible": "_status-pill__impossible_1i67r_15",
"status-pill__new": "_status-pill__new_1i67r_20",
"status-pill--bar": "_status-pill--bar_1i67r_26"
}, o = {
possible: "CheckCircleFillMini",
impossible: "CrossCircleFillMini"
};
function c({ status: s, variant: i = "default", label: t }) {
return /* @__PURE__ */ _(
"span",
{
className: e(
l["status-pill"],
l[`status-pill__${s}`],
i !== "default" && l[`status-pill--${i}`]
),
children: [
s !== "new" && /* @__PURE__ */ p(a, { name: o[s], title: s, size: 16 }),
t
]
}
);
}
export {
c as StatusPill
};
//# sourceMappingURL=StatusPill.js.map