"use client"; import { useCrmContext } from "@/components/crm-context"; import { KpiRow, SalesOverTimeCard, RevenueByCategoryCard, TopReps, UpcomingCloses, LatestOrders, DashboardSkeleton, } from "@/components/dashboard"; export default function DashboardPage() { const { crm, loading, setSelectedDealId } = useCrmContext(); return (
{loading ? ( ) : crm.deals.length === 0 ? (
No data yet. Ask the assistant to research an account or build a quote to get started.
) : (
{/* 1 — KPI row */} {/* 2–5 — responsive analytics grid (collapses to one column ≤1024px) */}
{/* 6 — latest orders, full width */}
)}
); }