import { ChartType } from '../../chart_types' ; import { SpecType } from '../../specs/constants' ; import { SmallMultiplesSpec } from '../../specs/small_multiples' ; import { createCustomCachedSelector } from '../create_selector' ; import { getSpecsFromStore } from '../utils' ; import { getSpecs } from './get_settings_specs' ; internal export const getSmallMultiplesSpecs = createCustomCachedSelector ( [ getSpecs ] , ( specs ) => getSpecsFromStore < SmallMultiplesSpec > ( specs , ChartType . Global , SpecType . SmallMultiples ) ) ; internal export const getSmallMultiplesSpec = createCustomCachedSelector ( [ getSmallMultiplesSpecs ] , ( smallMultiples ) => smallMultiples . length === 1 ? smallMultiples : undefined ) ;