'use client';

import { PageHeader } from '@/components/layout/page-header';
import { StatsCards } from '@/features/dashboard/components/stats-cards';
import { RealtimePanel } from '@/features/dashboard/components/realtime-panel';
import { PriceOverview } from '@/features/dashboard/components/price-overview';
import { ContributionBreakdown } from '@/features/dashboard/components/contribution-breakdown';
import { MiningProgress } from '@/features/mining/components/mining-progress';

export default function DashboardPage() {
  return (
    <div className="space-y-6">
      <PageHeader title="仪表盘" description="挖矿系统实时数据概览" />

      <StatsCards />

      {/* 挖矿进度 */}
      <div className="grid grid-cols-1 md:grid-cols-2 gap-6">
        <MiningProgress />
      </div>

      {/* 详细算力分解 */}
      <ContributionBreakdown />

      <div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
        <div className="lg:col-span-2">
          <PriceOverview />
        </div>
        <div>
          <RealtimePanel />
        </div>
      </div>
    </div>
  );
}
