import { i18n } from '@kbn/i18n' ; import { CoreStart } from 'kibana/public' ; import { getUpgradeAssistantHref } from './components/shared/links/kibana' ; export function setHelpExtension ( { chrome , http } ) { chrome . setHelpExtension ( { appName : i18n . translate ( 'xpack.apm.feedbackMenu.appName' , { defaultMessage : 'APM' , } ) , links : [ { linkType : 'discuss' , href : 'https://discuss.elastic.co/c/apm' , } , { linkType : 'custom' , href : getUpgradeAssistantHref ( http . basePath ) , content : i18n . translate ( 'xpack.apm.helpMenu.upgradeAssistantLink' , { defaultMessage : 'Upgrade assistant' , } ) , } , ] , } ) ; }