import { FC } from 'react' import { scaleOrdinal } from '@visx/scale'; import { LegendOrdinal, LegendItem, LegendLabel } from '@visx/legend'; const legendGlyphSize = 15; const ordinalColorScale = scaleOrdinal({ domain: ["Active", "Online", "Expired", "On Hold", "Limited"], range: ['#3b82f6', '#10b981', '#4b5563', '#A855F7', '#ef4444'], }); export const UsersStatsLegend: FC = () => { return ( {(labels) => (
{labels.map((label, i) => ( {label.text} ))}
)}
) }