import { Plugin , CoreSetup , AppMountParameters } from 'kibana/public' ; import { renderApp } from './app' ; export class CoreAppLinkPlugin implements Plugin < CoreAppLinkPluginSetup , CoreAppLinkPluginStart > { public setup ( core , deps ) { core . application . register ( { id : 'core_history_block' , title : 'History block test' , mount : async ( params ) => { const [ { application } ] = await core . getStartServices ( ) ; return renderApp ( { basePath : core . http . basePath , application , } , params ) ; } , } ) ; return { } ; } public start ( ) { return { } ; } public stop ( ) { } } export type CoreAppLinkPluginSetup = ReturnType < CoreAppLinkPlugin [ 'setup' ] > ; export type CoreAppLinkPluginStart = ReturnType < CoreAppLinkPlugin [ 'start' ] > ;