import { getTranslations } from "next-intl/server" import { MDXRemote } from "next-mdx-remote/rsc" import { DocsShell } from "@/components/docs/docs-shell" import { mdxComponents } from "@/components/docs/mdx-components" import { DOC_SECTIONS } from "@/lib/docs-sections" import { loadDocSource } from "@/lib/docs-source" export default async function DocsPage() { const t = await getTranslations("docs") const sectionsWithSource = DOC_SECTIONS.map((section) => ({ ...section, source: loadDocSource(section.file), })) return ( ({ id: s.id, title: s.title }))} > {sectionsWithSource.map((section) => (
))}
) }