import { Suspense } from "react"; import type { Metadata } from "next"; import Link from "next/link"; import { notFound } from "next/navigation"; import { connection } from "next/server"; import Image from "@/components/ui/resilient-image"; import { SiteHeader } from "@/components/public/site-header"; import { SiteFooter } from "@/components/public/site-footer"; import { buttonVariants } from "@/components/ui/button"; import { CommentBoardContent } from "@/components/comments/comment-board-content"; import { CommentBoardSkeleton } from "@/components/comments/comment-skeleton"; import { getCachedStygianSchedules } from "@/lib/cache/stygian"; export const instant = false; export const metadata: Metadata = { title: "Stygian" }; export default async function StygianCommentPage({ searchParams }: { searchParams: Promise> }) { await connection(); const query = await searchParams; const schedules = await getCachedStygianSchedules(); const raw = Array.isArray(query.schedule) ? query.schedule[0] : query.schedule; const selected = raw ? schedules.find((entry) => entry.scheduleId === Number(raw)) : schedules[0]; if (!selected) notFound(); const target = `stygian:${selected.scheduleId}`; return

Stygian · {selected.challengeName}

ความคิดเห็น

}>
; }