import { Suspense } from 'react'; import { ChartSkeleton } from '@/components/charts/chart-skeleton.js'; import { MetricCardSkeleton } from '@/components/dashboard/metric-card-skeleton.js'; import { Card, CardContent, CardHeader } from '@/components/ui/card.js'; import { Skeleton } from '@/components/ui/skeleton.js'; import { Activity, ArrowRight, Map as MapIcon } from 'lucide-react'; import Link from 'next/link'; import { AlertsSection } from './_sections/alerts-section.js'; import { DemandSummary } from './_sections/demand-summary.js'; import { GpuCalculatorSection } from './_sections/gpu-calculator-section.js'; import { HeroMetrics } from './_sections/hero-metrics.js'; import { PricesByRegion } from './_sections/prices-by-region.js'; import { StressGauges } from './_sections/stress-gauges.js'; function MetricCardsSkeleton() { return (
{Array.from({ length: 5 }).map((_, i) => ( ))}
); } function PricesByRegionSkeleton() { return (
{Array.from({ length: 5 }).map((_, i) => (
))}
); } function AlertsSkeleton() { return (
{Array.from({ length: 3 }).map((_, i) => (
))}
); } function GaugesSkeleton() { return (
{Array.from({ length: 2 }).map((_, col) => (
{Array.from({ length: 5 }).map((_, i) => (
))}
))}
); } function DemandSummarySkeleton() { return (
{Array.from({ length: 4 }).map((_, i) => (
))}
); } export default function DashboardHome() { return (

Dashboard

Real-time overview of AI datacenter energy impact across US grid regions.

Open Map
{/* Hero metric cards */} }> {/* Row 2: Prices + Demand Highlights + Alerts — three-column on large screens */}
}> }> }>
{/* Row 3: GPU Calculator + Grid Stress side by side */}
}> }>
); }