import { getSessionUser } from "@/lib/session"; import { getTranslations } from "next-intl/server"; import { redirect } from "next/navigation"; import { listTenants } from "@/lib/k8s"; import { AdminPanel } from "@/components/admin/admin-panel"; export default async function AdminPage() { const user = await getSessionUser(); if (!user) redirect("/login"); const t = await getTranslations("admin"); if (!user.isPlatform) { return (
{t("noAccess")}
{t("subtitle")}