import { LineChart, Line, XAxis, YAxis, Tooltip, Legend, ResponsiveContainer, CartesianGrid } from 'recharts'; type SeriesDatum = { year: number; [key: string]: number | string }; export default function TimeSeriesChart({ data, regions, colors = [] as string[] }: { data: SeriesDatum[]; // each item: { year, RegionA: value, RegionB: value } regions: string[]; // region keys to plot colors?: string[]; }) { const palette = colors.length ? colors : ['#0B5FFF', '#00A78E', '#FFB020', '#6B21A8']; return ( {regions.map((r, i) => ( ))} ); }