import { i18n } from '@kbn/i18n' ; import { IBasePath } from '../../../../../src/core/public' ; import { KibanaPageTemplateProps } from '../../../../../src/plugins/kibana_react/public' ; export function getNoDataConfig ( { docsLink , basePath , hasData , } ) { if ( hasData === false ) { return { solution : i18n . translate ( 'xpack.observability.noDataConfig.solutionName' , { defaultMessage : 'Observability' , } ) , actions : { elasticAgent : { title : i18n . translate ( 'xpack.observability.noDataConfig.beatsCard.title' , { defaultMessage : 'Add integrations' , } ) , description : i18n . translate ( 'xpack.observability.noDataConfig.beatsCard.description' , { defaultMessage : 'Use Beats and APM agents to send observability data to Elasticsearch. We make it easy with support for many popular systems, apps, and languages.' , } ) , href : basePath . prepend ( `/app/integrations/browse` ) , } , } , docsLink , } ; } }