import React from 'react' ; import { CoreSetup , CoreStart , Plugin } from '../../../core/public' ; import { SharedUXPluginSetup , SharedUXPluginStart , SharedUXPluginStartDeps , SharedUXPluginSetupDeps , } from './types' ; import { ServicesProvider } from './services' ; import { servicesFactory } from './services/kibana' ; /**
 * The Kibana plugin for Shared User Experience (Shared UX).
 */ export class SharedUXPlugin implements Plugin < SharedUXPluginSetup , SharedUXPluginStart > { public setup ( _coreSetup , _setupPlugins ) { return { } ; } public start ( coreStart , startPlugins ) { const services = servicesFactory ( { coreStart , startPlugins } ) ; return { ServicesContext : ( { children } ) => ( < ServicesProvider { ... services } > { children } < /ServicesProvider>), } ; } public stop ( ) { } }