"use client"; import { useState } from "react"; import { Area, AreaChart, CartesianGrid, ResponsiveContainer, Tooltip, XAxis, YAxis } from "recharts"; const data = [ { year: "2026", savings: 12000, investing: 12000 }, { year: "2027", savings: 24000, investing: 25400 }, { year: "2028", savings: 36000, investing: 40100 }, { year: "2029", savings: 48000, investing: 56500 }, { year: "2030", savings: 60000, investing: 74800 }, { year: "2031", savings: 72000, investing: 95200 }, { year: "2032", savings: 84000, investing: 118000 }, ]; export function GrowthSimulator() { const [monthlyContribution, setMonthlyContribution] = useState(1000); const [mode, setMode] = useState<"savings" | "investing">("investing"); return (
Simulate your wealth accumulation over 6 years.