import { Suspense } from "react"; import type { Metadata } from "next"; import { notFound } from "next/navigation"; import { connection } from "next/server"; import { GuidePageShell } from "@/components/public/guide-page-shell"; import { CommentBoardContent } from "@/components/comments/comment-board-content"; import { CommentBoardSkeleton } from "@/components/comments/comment-skeleton"; import { getCachedPublicGuideSummary } from "@/lib/cache/public"; export const instant = false; type Props = { params: Promise<{ character: string }> }; export async function generateMetadata({ params }: Props): Promise { const guide = await getCachedPublicGuideSummary((await params).character); return { title: guide ? `${guide.name}` : "ไม่พบไกด์" }; } export default async function GuideCommentPage({ params }: Props) { await connection(); const guide = await getCachedPublicGuideSummary((await params).character); if (!guide) notFound(); const target = `guide:${guide.id}`; return ( }> ); }