import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { getChartThemeSelector } from '../../../../state/selectors/get_chart_theme' ; import { getSettingsSpecSelector } from '../../../../state/selectors/get_settings_specs' ; internal export const isBrushAvailableSelector = createCustomCachedSelector ( [ getChartThemeSelector , getSettingsSpecSelector ] , ( { heatmap : { brushTool } } , { onBrushEnd } ) : boolean => Boolean ( onBrushEnd ) && brushTool . visible ) ; internal export const isBrushEndProvided = createCustomCachedSelector ( [ getSettingsSpecSelector ] , ( { onBrushEnd } ) : boolean => Boolean ( onBrushEnd ) ) ;