import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { getChartThemeSelector } from '../../../../state/selectors/get_chart_theme' ; import { isHistogramModeEnabledSelector } from './is_histogram_mode_enabled' ; internal export const getBarPaddingsSelector = createCustomCachedSelector ( [ isHistogramModeEnabledSelector , getChartThemeSelector ] , ( isHistogramMode , chartTheme ) : number => isHistogramMode ? chartTheme . scales . histogramPadding : chartTheme . scales . barsPadding ) ;