import { AppMountParameters , CoreSetup , CoreStart , Plugin , AppNavLinkStatus , } from '../../../src/core/public' ; import { SearchExamplesPluginSetup , SearchExamplesPluginStart , AppPluginSetupDependencies , AppPluginStartDependencies , } from './types' ; import { PLUGIN_NAME } from '../common' ; export class SearchExamplesPlugin implements Plugin < SearchExamplesPluginSetup , SearchExamplesPluginStart , AppPluginSetupDependencies , AppPluginStartDependencies > { public setup ( core , { developerExamples } ) { core . application . register ( { id : 'searchExamples' , title : PLUGIN_NAME , navLinkStatus : AppNavLinkStatus . hidden , async mount ( params ) { const { renderApp } = await import ( './application' ) ; const [ coreStart , depsStart ] = await core . getStartServices ( ) ; return renderApp ( coreStart , depsStart , params ) ; } , } ) ; developerExamples . register ( { appId : 'searchExamples' , title : 'Search Examples' , description : `Search Examples` , } ) ; return { } ; } public start ( core ) { return { } ; } public stop ( ) { } }