import { DEFAULT_CSS_CURSOR } from '../../../../common/constants' ; import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { isBrushingSelector } from './is_brushing' ; import { getPickedShapes } from './picked_shapes' ; internal export const getPointerCursorSelector = createCustomCachedSelector ( [ getPickedShapes , isBrushingSelector ] , ( pickedShapes , isBrushing ) => { return isBrushing || ( Array . isArray ( pickedShapes ) && pickedShapes . length > 0 ) ? 'pointer' : DEFAULT_CSS_CURSOR ; } ) ;