/*
* 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, initialLicenseStatus, notifications, http }: AppDependencies) {
return (
<I18nContext>
<AppContextProvider args={{ initialLicenseStatus, notifications, http }}>
<ProfileContextProvider>
<Main />
</ProfileContextProvider>
</AppContextProvider>
</I18nContext>
);
}