21 lines
595 B
JavaScript
21 lines
595 B
JavaScript
(function () {
|
|
const OrgPortal = (window.OrgPortal = window.OrgPortal || {});
|
|
const { h } = OrgPortal.runtime;
|
|
|
|
OrgPortal.componentFns = OrgPortal.componentFns || {};
|
|
|
|
OrgPortal.componentFns.MetricCard = function MetricCard(
|
|
label,
|
|
value,
|
|
note,
|
|
) {
|
|
return h(
|
|
"div",
|
|
{ className: "org-metric-card" },
|
|
h("span", { className: "org-metric-label" }, label),
|
|
h("strong", { className: "org-metric-value" }, value),
|
|
h("span", { className: "org-metric-note" }, note),
|
|
);
|
|
};
|
|
})();
|