+
+ {KINDS.map((k) => (
+
+ `rounded px-3 py-1 text-sm ${isActive ? "bg-neutral-800 text-white" : "border"}`
+ }
+ >
+ {t(`authorities.${k}`)}
+
+ ))}
+
+
+
+ {authorities?.length === 0 && (
+ - {t("authorities.empty")}
+ )}
+ {authorities?.map((a) => (
+ -
+ {labelText(a.labels, lang)}
+
+ ))}
+
+
+
+
+ );
+}
diff --git a/web/src/authorities/authorities.test.tsx b/web/src/authorities/authorities.test.tsx
new file mode 100644
index 0000000..d9b45d0
--- /dev/null
+++ b/web/src/authorities/authorities.test.tsx
@@ -0,0 +1,37 @@
+import { expect, test } from "vitest";
+import { screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { http, HttpResponse } from "msw";
+import { Routes, Route } from "react-router-dom";
+import { server } from "../test/server";
+import { renderApp } from "../test/render";
+import { AuthoritiesPage } from "./authorities-page";
+
+function tree() {
+ return (
+