import React from 'react' import CategoryCard from '../../components/forum/CategoryCard' export default function ForumIndex({ categories = [], trendingTopics = [], latestTopics = [] }) { const totalThreads = categories.reduce((sum, cat) => sum + (Number(cat?.thread_count) || 0), 0) const totalPosts = categories.reduce((sum, cat) => sum + (Number(cat?.post_count) || 0), 0) const sortedByActivity = [...categories].sort((a, b) => { const aTime = a?.last_activity_at ? new Date(a.last_activity_at).getTime() : 0 const bTime = b?.last_activity_at ? new Date(b.last_activity_at).getTime() : 0 return bTime - aTime }) const latestActive = sortedByActivity[0] ?? null return (
Community Hub
Ask questions, share progress, and join focused conversations across every part of Skinbase. This page is your launch point to active topics and community knowledge.
Latest Activity
Browse
Choose a section to view threads or start a discussion.
No forum categories available yet.
{emptyLabel}
) : ( )}{label}
{value}