import { Annotation } from '@nivo/annotations' import { ComputedDatum, SwarmPlotSvgProps } from './types' import { useSwarmPlotAnnotations } from './hooks' export const SwarmPlotAnnotations = ({ nodes, annotations, }: { nodes: ComputedDatum[] annotations: SwarmPlotSvgProps['annotations'] }) => { const boundAnnotations = useSwarmPlotAnnotations(nodes, annotations) return ( <> {boundAnnotations.map((annotation, i) => ( ))} ) }