export interface ChartLegendItem { label: string; color: string; } interface ChartLegendProps { items: ChartLegendItem[]; } export function ChartLegend({ items }: ChartLegendProps) { return (
{items.map((item, index) => (
{item.label}
))}
); }