/**
* EconomicPerformance — full-width Economic Performance Over Time chart
* Shows: cumulative net P&L, per-game profit breakdown, coaching spend, prize income
* Design: Quantitative Finance Dark — Bloomberg-style multi-series chart
*/
import {
ComposedChart, Bar, Line, XAxis, YAxis, Tooltip,
ResponsiveContainer, ReferenceLine, CartesianGrid, Legend,
} from "recharts";
import { TooltipPanel } from "./Panel";
export interface EconomicDataPoint {
game: number;
prizeIncome: number; // prize won this game (0 if lost)
coachingSpend: number; // coaching fees paid this game (negative)
entryFee: number; // entry fee paid (always -10)
netPnl: number; // net P&L this game
cumulativePnl: number; // running cumulative P&L
whiteWallet: number;
blackWallet: number;
}
interface EconomicPerformanceProps {
data: EconomicDataPoint[];
}
const CustomTooltip = ({ active, payload, label }: any) => {
if (!active || !payload?.length) return null;
return (