import type { Annotation } from '../../../../../common/types/vis_data' ; export const filterAnnotations = ( filterValue ? ) => ( annotations ) => annotations . filter ( ( { key } ) => filterValue && key <= filterValue ) ;