diff --git a/src/app/snippets/[id]/page.tsx b/src/app/snippets/[id]/page.tsx index ad2f928..5280a77 100644 --- a/src/app/snippets/[id]/page.tsx +++ b/src/app/snippets/[id]/page.tsx @@ -1,3 +1,6 @@ +import { db } from "@/db"; +import { notFound } from "next/navigation"; + interface SnippetShowPageProps { params: Promise<{ id: string; @@ -5,6 +8,16 @@ interface SnippetShowPageProps { } export default async function SnippetShowPage(props: SnippetShowPageProps) { - const { id } = await props.params; - return