import type { CSSProperties, ReactNode, Ref } from 'react'; import { legendOffsetContext } from '../../contexts/legendOffsetContext.js'; import type { PlotChildren } from '../../utils/splitChildren.js'; interface AnnotationsTrackingLayerProps { width: number; height: number; svgStyle: CSSProperties; svgId?: string; svgClassName?: string; topOffset: number; leftOffset: number; legendOffset: number; legend: PlotChildren['legend']; legendRef: Ref; plotId: string; annotations: PlotChildren['annotations']; tracking: ReactNode | null; } export default function AnnotationsTrackingLayer( props: AnnotationsTrackingLayerProps, ) { const { width, height, svgStyle, svgId, svgClassName, topOffset, leftOffset, legendOffset, legend, legendRef, plotId, annotations, tracking, } = props; return ( {annotations} {tracking} {/* Series viewport */} {legend} ); }