import { i18n } from '@kbn/i18n' ; import type { CoreSetup } from 'kibana/public' ; import type { ManagementSetup } from 'src/plugins/management/public' ; import type { UsageCollectionSetup } from 'src/plugins/usage_collection/public' ; import type { MlStartDependencies } from '../../plugin' ; import type { ManagementAppMountParams } from '../../../../../../src/plugins/management/public' ; export function registerManagementSection ( management , core , deps ) { return management . sections . section . insightsAndAlerting . registerApp ( { id : 'jobsListLink' , title : i18n . translate ( 'xpack.ml.management.jobsListTitle' , { defaultMessage : 'Machine Learning Jobs' , } ) , order : 2 , async mount ( params ) { const { mountApp } = await import ( './jobs_list' ) ; return mountApp ( core , params , deps ) ; } , } ) ; }