import React from 'react' ; import ReactDOM from 'react-dom' ; import { I18nProvider } from '@osd/i18n/react' ; import type { AppMountParameters } from '../../application' ; import type { HttpSetup } from '../../http' ; import type { NotificationsSetup } from '../../notifications' ; import { StatusApp } from './status_app' ; interface Deps { http : HttpSetup ; notifications : NotificationsSetup ; } export const renderApp = ( { element } , { http , notifications } ) => { ReactDOM . render ( < I18nProvider > < StatusApp http = { http } notifications = { notifications } / > < /I18nProvider>, element); return ( ) => { ReactDOM . unmountComponentAtNode ( element ) ; } ; } ;