"use client" import { Bar, BarChart, CartesianGrid, ResponsiveContainer, Tooltip, XAxis, YAxis } from "recharts" import type { MemberStanding } from "@/lib/follows" export function LeaderboardChart({ standings }: { standings: MemberStanding[] }) { const data = standings.slice(0, 10).map((s) => ({ name: s.displayName, "Taux de réussite": Math.round(s.winRate * 100), })) return ( ) }