import { Dashboard } from '@/components/dashboard'
import { getDashboardData } from '@/lib/dashboard'

export default async function HomePage() {
  const data = await getDashboardData(6)

  return (
    <main className="container mx-auto pt-8 px-4">
      <Dashboard
        recentNotes={data.recentNotes}
        mostUsedNotes={data.mostUsedNotes}
        recentCommands={data.recentCommands}
        recentSnippets={data.recentSnippets}
        activityBasedNotes={data.activityBasedNotes}
        hasActivity={data.hasActivity}
      />
    </main>
  )
}
