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")}

); } const tenants = await listTenants(); return (

{t("title")}

{t("subtitle")}

{/* Sub-tools: links to other admin pages. Plain links rather than nav-shell entries — these are platform-team utilities, not main navigation. */} {t("openclawTool")}
); }