2026-08-18 20:45:12 +07:00
|
|
|
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;
|
|
|
|
|
}
|
2026-08-26 15:49:58 +07:00
|
|
|
return <GlossaryView initialTerms={terms} />;
|
2026-08-18 20:45:12 +07:00
|
|
|
}
|