'use client'; import type { StateHistoryStats } from '@/lib/schemas/statistics'; import { PlayerCountChart } from './PlayerCountChart'; import { SessionTypesChart } from './SessionTypesChart'; import { DailyActivityChart } from './DailyActivityChart'; import { StatCard } from './StatCard'; import { RecentSessions } from './RecentSessions'; interface StatisticsDashboardProps { stats: StateHistoryStats; } export function StatisticsDashboard({ stats }: StatisticsDashboardProps) { if (!stats) { return (
📊

No Statistics Available

No data found for the selected date range.

); } return (
{/* 4 stat cards */}
{/* Charts row */}

Player Count Over Time

Session Types

Daily Activity

{/* Recent sessions */}
Recent Sessions
); }