import { Tooltip, TooltipContent, TooltipTrigger, } from "@/components/shadcn/tooltip"; export interface ChartLegendItem { label: string; color: string; dataKey?: string; } interface ChartLegendProps { items: ChartLegendItem[]; selectedItem?: string | null; onItemClick?: (dataKey: string) => void; } export function ChartLegend({ items, selectedItem, onItemClick, }: ChartLegendProps) { const isInteractive = !!onItemClick; return (
{item.label}