Files
GMW/services/frontend/src/app/(dashboard)/glossary/page.tsx
T

16 lines
397 B
TypeScript

import { getGlossary } from "@/lib/api/server";
import type { GlossaryRow } from "@/lib/types";
import { GlossaryView } from "./view";
export const dynamic = "force-dynamic";
export default async function GlossaryPage() {
let terms: GlossaryRow[] | undefined;
try {
terms = await getGlossary(100);
} catch {
terms = undefined;
}
return <GlossaryView initialTerms={terms} />;
}