import Link from 'next/link' import { campaignConceptHref, type CampaignConceptId } from '@/lib/campaignIntelligenceConcepts' import type { MapScaleClassing } from '@/lib/mapScaleClasses' type MapScaleLegendProps = { classing: MapScaleClassing /** What the swatches measure — "votos de Jorge Solla em 2022". */ metricLabel: string /** What the colour means plus any caveat (small scope, missing data). */ note: string /** Ties the note to the scale selector through `aria-describedby`. */ noteId: string /** Glossary entry for this scale, when it has one (E18). */ conceptID?: CampaignConceptId } /** * Discrete counterpart of `ChoroplethLegend`: a swatch per class with its real * range, weakest on the left. A gradient bar cannot answer "which band is this * município in", which is the only question a classed map is asked. */ export const MapScaleLegend = ({ classing, metricLabel, note, noteId, conceptID, }: MapScaleLegendProps) => (

{note} {conceptID ? ( <> {' '} Saiba mais ) : null}

)