import { cx as e } from "../../../theme/tools.js";
import { StatusBadge as t } from "../../atoms/status_badge/StatusBadge.js";
import { badge as n } from "./backofficeStatusMetaBadge.css.js";
import { jsx as r } from "react/jsx-runtime";
import { useTranslation as i } from "react-i18next";
//#region src/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.tsx
var a = {
	neutral: "disabled",
	info: "info",
	success: "active",
	warning: "warning",
	danger: "error"
}, o = ({ status: o, emptyLabel: s, className: c }) => {
	let { t: l } = i("ui", { useSuspense: !1 });
	return o == null ? /* @__PURE__ */ r(t, {
		tone: "disabled",
		className: e(n, c),
		children: s ?? l("common.notAvailable")
	}) : /* @__PURE__ */ r(t, {
		tone: a[o.tone],
		className: e(n, c),
		children: o.label
	});
};
//#endregion
export { o as BackofficeStatusMetaBadge, o as default };

//# sourceMappingURL=BackofficeStatusMetaBadge.js.map