2024-01-30 14:19:25 +00:00
|
|
|
import { Section } from '@/types/content-types'
|
2024-01-15 12:33:15 +00:00
|
|
|
import { getDb } from '@/utils/ContentDatabase'
|
|
|
|
import { Header } from './Header'
|
|
|
|
import { Sidebar } from './Sidebar'
|
|
|
|
|
|
|
|
export async function SectionDocsPage({ section }: { section: Section }) {
|
|
|
|
const db = await getDb()
|
|
|
|
const sidebar = await db.getSidebarContentList({ sectionId: section.id })
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
2024-01-30 14:19:25 +00:00
|
|
|
<Header sectionId={section.id} />
|
2024-01-15 12:33:15 +00:00
|
|
|
<Sidebar {...sidebar} />
|
|
|
|
<main className="article">
|
|
|
|
<div className="page-header">
|
|
|
|
<h1>{section.title}</h1>
|
|
|
|
</div>
|
2024-01-30 14:19:25 +00:00
|
|
|
Choose your adventure on the left.
|
2024-01-15 12:33:15 +00:00
|
|
|
</main>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|