import type { ReactNode } from 'react'; export type BarChartPoint = { key: string; label: string; value: number; /** Optional secondary value rendered as an overlay (e.g., errors stacked on calls). */ secondary?: number; tooltip: ReactNode; }; export default function BarChart({ points, height = 180, emptyLabel }: { points: BarChartPoint[]; height?: number; emptyLabel: string }) { if (points.length === 0) { return