import { notFound } from "next/navigation"; import { JournalEntryEditor } from "@/modules/journal/components/entry-editor"; import { getJournalEntry } from "@/modules/journal/server/queries"; export default async function JournalEntryPage({ params }: { params: Promise<{ id: string }> }) { const { id } = await params; const entry = await getJournalEntry(id).catch(() => null); if (!entry) notFound(); return ; }