Files
sorsfonalak/services/frontend/src/app/forum/leiratkozas/page.tsx
T

21 lines
801 B
TypeScript
Raw Normal View History

import { ForumUnsubscribe } from "./ForumUnsubscribe";
export const metadata = { title: "Leiratkozás a fórum leveleiről", robots: { index: false } };
type Props = { searchParams: Promise<{ token?: string | string[] }> };
/** From the footer of a forum e-mail: every forum e-mail off, no login needed. */
export default async function ForumUnsubscribePage({ searchParams }: Props) {
const raw = (await searchParams).token;
const token = Array.isArray(raw) ? raw[0] : raw;
return (
<div className="fh fprof">
<h1 className="fpage-title">Leiratkozás</h1>
<p className="muted">
Nem kérsz több levelet a fórumról: se válaszértesítést, se napi összesítőt, se üzenetértesítést.
</p>
<ForumUnsubscribe token={token ?? null} />
</div>
);
}