"use client"; import { AreaChart } from "@/components/charts/AreaChart"; import { DonutChart } from "@/components/charts/DonutChart"; import { GaugeChart } from "@/components/charts/GaugeChart"; import { MiniBars } from "@/components/charts/MiniBars"; import { FactorRow } from "@/components/finance/FactorRow"; import { GoalCard } from "@/components/finance/GoalCard"; import { InsightCard } from "@/components/finance/InsightCard"; import { TransactionRow } from "@/components/finance/TransactionRow"; import { Card, StatCard } from "@/components/ui/Card"; import { Chip } from "@/components/ui/Chip"; import { ProgressBar } from "@/components/ui/ProgressBar"; import { goals, transactions } from "@/lib/data"; import type { ViewKey } from "./Sidebar"; export function DashboardView({ active }: { active: ViewKey }) { const views: Record = { overview: , transactions: , budget: , goals: , networth: , credit: , insights: }; return views[active]; } function Overview() { return (

Net worth trend

12 months

Spending mix

); } function Transactions() { return (

Recent transactions

Undo-ready categorization
{transactions.map(([merchant, category, amount, date]) => )}
); } function Budget() { const categories = [["Housing", 62], ["Groceries", 84], ["Dining", 109], ["Transport", 42], ["Subscriptions", 77]] as const; return (

Flex budget

Default mode

Category guardrails

{categories.map(([name, value]) => )}
); } function Goals() { return
{goals.map((goal) => )}
; } function NetWorth() { return (

Assets over time

Allocation

); } function CreditRewards() { return (

FICO 8 factors

Rewards this month

Estimated $142 earned; $28 more available by shifting grocery spend.

); } function Insights() { return (
); }