import { i18n } from '@kbn/i18n' ; import { EMSClient } from '@elastic/ems-client' ; import { EMS_APP_NAME , EMSSettings } from '../../common' ; export function createEMSClient ( emsSettings , kbnVersion ) { return new EMSClient ( { language : i18n . getLocale ( ) , appVersion : kbnVersion , appName : EMS_APP_NAME , tileApiUrl : emsSettings ! . getEMSTileApiUrl ( ) , fileApiUrl : emsSettings ! . getEMSFileApiUrl ( ) , landingPageUrl : emsSettings ! . getEMSLandingPageUrl ( ) , fetchFunction ( url ) { return fetch ( url ) ; } , proxyPath : '' , } ) ; }