import { jsx as i } from "../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import { useMemo as e } from "../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
import { getDisputeStatus as n } from "../../../../utils/translation/getters.js";
import { isDisputeActionNeededUrgently as m } from "../../../../utils/disputes/actionNeeded.js";
import { Tag as u } from "../../../../internal/Tag/Tag.js";
import { TagVariant as r } from "../../../../internal/Tag/types.js";
import f from "../../../../../core/Context/preact/useCoreContext.js";
const C = ({ dispute: t }) => {
  const { i18n: o } = f(), s = e(() => n(o, t.status), [o, t]), a = e(() => t.status === "WON" ? r.SUCCESS : t?.defensibility === "NOT_ACTIONABLE" ? r.DEFAULT : m(t) ? r.ERROR : r.DEFAULT, [t]);
  return /* @__PURE__ */ i(u, { variant: a, label: s });
};
export {
  C as default
};
