import { getTextColor } from '@/utils/colors'; import { type FormatOptions, formatValue } from '@/utils/format'; import './index.css'; export type LegendProps = { labels: string[]; values: number[]; formatOptions?: FormatOptions; hueOffset?: number; }; export const Legend = ({ labels, values, formatOptions, hueOffset = 0 }: LegendProps) => (