import { Category } from '@/types/content-types' import { getDb } from '@/utils/ContentDatabase' import Link from 'next/link' import { Breadcrumb } from './Breadcrumb' import { Header } from './Header' import { Sidebar } from './Sidebar' export async function CategoryDocsPage({ category }: { category: Category }) { const db = await getDb() const section = await db.getSection(category.sectionId) const sidebar = await db.getSidebarContentList({ sectionId: category.sectionId }) const articles = await db.getCategoryArticles(section.id, category.id) return ( <>

{category.title}

{articles.length > 0 && (
    {articles.map((article) => (
  • {article.title}
  • ))}
)}
) }