import { GlobalChartState } from '../../../../state/chart_state' ; import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { isBrushAvailableSelector } from './is_brush_available' ; const getPointerSelector = ( state ) => state . interactions . pointer ; internal export const isBrushingSelector = createCustomCachedSelector ( [ isBrushAvailableSelector , getPointerSelector ] , ( isBrushAvailable , pointer ) : boolean => isBrushAvailable && pointer . dragging ) ;