import type { Metadata } from "next"; import { notFound } from "next/navigation"; import SiteShell from "@community/components/SiteShell"; import DigitalDayClient from "@community/components/DigitalDayClient"; import { api } from "@community/lib/api"; export async function generateMetadata({ params }: { params: Promise<{ id: string }> }): Promise { const { id } = await params; const day = await api.getDigitalDay(id).catch(() => null); return { title: day ? `${day.title} · nomadro` : "Daily guide · nomadro" }; } export default async function DigitalDayPage({ params }: { params: Promise<{ id: string }> }) { const { id } = await params; const day = await api.getDigitalDay(id).catch(() => null); if (!day) notFound(); return ( ); }