import { Annotation } from '@nivo/annotations' import { ComputedNode, InputLink, InputNode, NetworkSvgProps } from './types' import { useNodeAnnotations } from './hooks' interface NetworkNodeAnnotationsProps { nodes: ComputedNode[] annotations: NonNullable['annotations']> } export const NetworkNodeAnnotations = ({ nodes, annotations, }: NetworkNodeAnnotationsProps) => { const boundAnnotations = useNodeAnnotations(nodes, annotations) return ( <> {boundAnnotations.map((annotation, i) => ( ))} ) }