import React from 'react' ; import { API_BASE_PATH } from '../../common' ; import { AuthorizationProvider , KibanaThemeProvider } from '../shared_imports' ; import { AppContextProvider , AppDependencies } from './app_context' ; interface Props { appDependencies : AppDependencies ; children : React . ReactNode ; } export const AppProviders = ( { appDependencies , children } ) => { const { core , theme$ } = appDependencies ; const { i18n : { Context : I18nContext } , http , } = core ; return ( < AuthorizationProvider httpClient = { http } privilegesEndpoint = { `${ API_BASE_PATH }privileges` } > < I18nContext > < KibanaThemeProvider theme$ = { theme$ } > < AppContextProvider value = { appDependencies } > { children } < /AppContextProvider> < /KibanaThemeProvider> < /I18nContext> < /AuthorizationProvider>); } ;