import { Article } from '@/types/content-types' import { getDb } from '@/utils/ContentDatabase' import { ArticleNavLinks } from './ArticleNavLinks' import ExampleCodeBlock from './ExampleCodeBlock' import { Header } from './Header' import { Mdx } from './Mdx' import { Sidebar } from './Sidebar' export async function ExampleDocsPage({ article }: { article: Article }) { const db = await getDb() const section = await db.getSection(article.sectionId) const category = await db.getCategory(article.categoryId) const links = await db.getArticleLinks(article) const sidebar = await db.getSidebarContentList({ sectionId: section.id, categoryId: category.id, articleId: article.id, }) return ( <>

{article.title}

{article.description &&

{article.description}

}
{article.content && } {links && }
) }