import { getTooltipType } from '../../../../specs' ; import { TooltipType } from '../../../../specs/constants' ; import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { getSettingsSpecSelector } from '../../../../state/selectors/get_settings_specs' ; import { getTooltipInfoSelector } from './tooltip' ; internal export const isTooltipVisibleSelector = createCustomCachedSelector ( [ getSettingsSpecSelector , getTooltipInfoSelector ] , ( settingsSpec , tooltipInfo ) : boolean => { return getTooltipType ( settingsSpec ) !== TooltipType . None && tooltipInfo . values . length > 0 ; } ) ;