28 lines
899 B
TypeScript
28 lines
899 B
TypeScript
import type { Metadata } from "next";
|
|||
|
|
import { notFound } from "next/navigation";
|
||
|
|
|
||
|
|
import { AdminNav } from "@/components/AdminNav";
|
||
|
|
import { requireMe } from "@/lib/server";
|
||
|
|
|
||
|
|
import { AdminInvitations } from "./AdminInvitations";
|
||
|
|
|
||
|
|
export const metadata: Metadata = { title: "Meghívók" };
|
||
|
|
|
||
|
|
export default async function AdminInvitationsPage() {
|
||
|
|
const me = await requireMe("/admin/meghivok");
|
||
|
|
if (!me.user.roles.includes("admin")) notFound();
|
||
|
|
return (
|
||
|
|
<main className="page" style={{ maxWidth: 1180 }}>
|
||
|
|
<AdminNav current="/admin/meghivok" />
|
||
|
|
<div className="page-head">
|
||
|
|
<h1>Meghívók</h1>
|
||
|
|
<p className="muted">
|
||
|
|
Az oldalra csak meglévő felhasználó vagy meghívott léphet be. A meghívó 30 napig érvényes, és a linkkel bármelyik
|
||
|
|
Google-fiókkal elfogadható.
|
||
|
|
</p>
|
||
|
|
</div>
|
||
|
|
<AdminInvitations />
|
||
|
|
</main>
|
||
|
|
);
|
||
|
|
}
|