import { Bar, BarChart, CartesianGrid, XAxis, YAxis, LabelList, ResponsiveContainer, } from "recharts"; import { Card, CardContent } from "~/components/ui/card"; import { type ChartConfig, ChartContainer, } from "~/components/ui/chart"; import { formatNumber } from "~/lib/utils"; export type PopupChartDatum = { name: string; value: number; }; const chartConfig = { value: { label: "Operational Fee", color: "#4ADE80", // Green-400 }, } satisfies ChartConfig; export function PopupBarChart({ data, }: { data: PopupChartDatum[]; }) { return ( `${formatNumber(Math.round(value))}`} /> `${formatNumber(Math.round(v))}`} /> ); }