import React from 'react' import Breadcrumbs from '../../components/forum/Breadcrumbs' export default function ForumSection({ category, boards = [] }) { const name = category?.name ?? 'Forum Section' const description = category?.description const preview = category?.preview_image ?? '/images/forum/default.jpg' const breadcrumbs = [ { label: 'Home', href: '/' }, { label: 'Forum', href: '/forum' }, { label: name }, ] return (
{`${name}

Forum Section

{name}

{description &&

{description}

}

Subcategories

Browse boards

Select a board to open its thread list.

{boards.length === 0 ? (
No boards are available in this section yet.
) : (
{boards.map((board) => (

{board.title}

{board.description &&

{board.description}

}
Open
{board.topics_count ?? 0} topics {board.posts_count ?? 0} posts {board.latest_topic?.title && Latest: {board.latest_topic.title}}
))}
)}
) }