import type { Metadata } from "next"; import { notFound } from "next/navigation"; import Link from "next/link"; import { JoinForm } from "@/components/meeting/JoinForm"; import { OrganicBlob } from "@/components/OrganicBlob"; import { getEventForJoin } from "@/lib/payload/content"; import { combineDateAndTime } from "@/lib/meeting/status"; import { formatBerlinDate, formatBerlinTime } from "@/lib/calendar/timezone"; export const dynamic = "force-dynamic"; const turnstileSiteKey = process.env.TURNSTILE_SITE_KEY ?? ""; export const metadata: Metadata = { title: "Meeting beitreten", robots: { index: false, follow: false }, }; type Args = { params: Promise<{ slug: string }> }; export default async function BeitretenPage({ params }: Args) { const { slug } = await params; const event = await getEventForJoin(slug); if (!event || !event.isOnline) notFound(); const start = combineDateAndTime(event.date, event.startTime); const dateLabel = formatBerlinDate(start, { day: "2-digit", month: "long" }); const timeLabel = formatBerlinTime(start, { hour: "2-digit", minute: "2-digit" }); return (
ANOUMA

Dein Termin beginnt bald

{event.title}

{dateLabel} ยท {timeLabel} Uhr

); }