import { ChartType } from '../../..' ; import { SpecType } from '../../../../specs' ; import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { getSpecs } from '../../../../state/selectors/get_settings_specs' ; import { getSpecsFromStore } from '../../../../state/utils' ; import { HeatmapSpec } from '../../specs' ; internal export const getHeatmapSpecSelector = createCustomCachedSelector ( [ getSpecs ] , ( specs ) : HeatmapSpec => { const spec = getSpecsFromStore < HeatmapSpec > ( specs , ChartType . Heatmap , SpecType . Series ) ; return spec [ 0 ] ; } ) ;