import type { ScaleTime } from 'd3-scale'; import type { MutableRefObject } from 'react'; import DowntimeAnnotations from './Area/Downtime'; import AcknowledgementAnnotations from './Line/Acknowledgement'; import CommentAnnotations from './Line/Comments'; import type { TimelineEvent } from './models'; import useAnnotation from './useAnnotation'; export interface Props { data: Array; graphHeight: number; graphSvgRef: MutableRefObject; graphWidth: number; xScale: ScaleTime; } const Annotations = ({ xScale, data, graphHeight, graphWidth, graphSvgRef }: Props): JSX.Element => { const annotationHoveredId = useAnnotation({ data, graphSvgRef, graphWidth, xScale }); const props = { annotationHoveredId, data, graphHeight, xScale }; return ( ); }; export default Annotations;