import { Annotation } from '@nivo/annotations' import { useScatterPlotAnnotations } from './hooks' import { ScatterPlotCommonProps, ScatterPlotDatum, ScatterPlotNodeData } from './types' interface ScatterPlotAnnotationsProps { nodes: ScatterPlotNodeData[] annotations: ScatterPlotCommonProps['annotations'] } export const ScatterPlotAnnotations = ({ nodes, annotations, }: ScatterPlotAnnotationsProps) => { const boundAnnotations = useScatterPlotAnnotations(nodes, annotations) return ( <> {boundAnnotations.map((annotation, i) => ( ))} ) }