"use client" import { CartesianGrid, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from "recharts" import type { PerformancePoint } from "@/lib/chart-data" export function PerformanceChart({ data }: { data: PerformancePoint[] }) { const chartData = data.map((p) => ({ ...p, pct: Math.round(p.cumulativeWinRate * 100) })) return ( [`${v}%`, "Taux de réussite cumulé"]} /> ) }