30 lines
877 B
TypeScript
30 lines
877 B
TypeScript
|
/*
|
||
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||
|
* or more contributor license agreements. Licensed under the Elastic License;
|
||
|
* you may not use this file except in compliance with the Elastic License.
|
||
|
*/
|
||
|
import React from 'react';
|
||
|
import { Main } from './containers';
|
||
|
import { AppContextProvider } from './contexts/app_context';
|
||
|
import { ProfileContextProvider } from './contexts/profiler_context';
|
||
|
|
||
|
import { AppDependencies } from './boot';
|
||
|
|
||
|
export function App({
|
||
|
I18nContext,
|
||
|
licenseEnabled,
|
||
|
notifications,
|
||
|
http,
|
||
|
formatAngularHttpError,
|
||
|
}: AppDependencies) {
|
||
|
return (
|
||
|
<I18nContext>
|
||
|
<AppContextProvider value={{ licenseEnabled, notifications, http, formatAngularHttpError }}>
|
||
|
<ProfileContextProvider>
|
||
|
<Main />
|
||
|
</ProfileContextProvider>
|
||
|
</AppContextProvider>
|
||
|
</I18nContext>
|
||
|
);
|
||
|
}
|