import React , { FC } from 'react' ; import { CoreThemeProvider } from '../theme/core_theme_provider' ; import type { ThemeServiceStart } from '../theme' ; import type { I18nStart } from '../i18n' ; interface CoreContextProviderProps { theme : ThemeServiceStart ; i18n : I18nStart ; } /**
 * utility component exposing all the context providers required by core when integrating with react
 **/ export const CoreContextProvider = ( { i18n , theme , children } ) => { return ( < i18n . Context > < CoreThemeProvider theme$ = { theme . theme$ } > { children } < /CoreThemeProvider> < /i18n.Context>); } ;