import { i18n } from '@kbn/i18n' ; import { KibanaPageTemplateProps } from '../../../../../../../src/plugins/kibana_react/public' ; export function getNoDataConfig ( { docsLink , basePath , hasData , } ) { if ( hasData === false ) { return { solution : i18n . translate ( 'xpack.apm.noDataConfig.solutionName' , { defaultMessage : 'Observability' , } ) , actions : { elasticAgent : { title : i18n . translate ( 'xpack.apm.ux.overview.agent.title' , { defaultMessage : 'Add the APM integration' , } ) , description : i18n . translate ( 'xpack.apm.ux.overview.agent.description' , { defaultMessage : 'Use APM agents to collect APM data. We make it easy with agents for many popular languages.' , } ) , href : `${ basePath }/app/home#/tutorial/apm` , } , } , docsLink , } ; } }