import { i18n } from '@kbn/i18n' ; export const ALL_OPTION_VALUE = 'ALL_OPTION_VALUE' ; export function getOptionLabel ( value ) { if ( value === undefined || value === ALL_OPTION_VALUE ) { return i18n . translate ( 'xpack.apm.agentConfig.allOptionLabel' , { defaultMessage : 'All' , } ) ; } return value ; } export function omitAllOption ( value ? ) { return value === ALL_OPTION_VALUE ? undefined : value ; }