Files
MineGeo/app/moderation/page.tsx
pavel444-byte 927923dc95
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 11m31s
Improve accessibility and polish page styling
2026-10-24 14:11:17 +05:00

32 lines
1.1 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { getI18n } from "@/lib/i18n";
import { Header, Footer } from "@/components/Shell";
import { Moderation } from "@/components/Moderation";
import Link from "next/link";
import { staffPage } from "@/lib/staff-page";
import { isAdministrator } from "@/shared/permissions";
export const metadata = { title: "Moderation Tools" };
export default async function Review() {
const [{ t }, staff] = await Promise.all([getI18n(), staffPage()]);
return (
<>
<Header />
<main className="section page-content moderation-page" id="main-content" tabIndex={-1}>
<span className="eyebrow">{t("THE COMMUNITY’S COMPASS")}</span>
<h1>{t("Moderation Tools.")}</h1>
<p className="lead">
{t("Review pending maps, map updates and account ban appeals.")}
</p>
{isAdministrator(staff.role) && (
<div className="staff-page-switch">
<Link className="button" href="/admin">
{t("Open Admin Tools")}
</Link>
</div>
)}
<Moderation />
</main>
<Footer />
</>
);
}