import { Suspense } from "react";
import { JournalIndex } from "@/modules/journal/components/journal-index";
import { listJournalEntries } from "@/modules/journal/server/queries";

export default async function JournalPage() {
  const entries = await listJournalEntries();

  return (
    <Suspense>
      <JournalIndex entries={entries} />
    </Suspense>
  );
}
