import React from 'react' ; import type { ObservabilityPageTemplateDependencies , WrappedPageTemplateProps , } from './page_template' ; export const LazyObservabilityPageTemplate = React . lazy ( ( ) => import ( './page_template' ) ) ; export type LazyObservabilityPageTemplateProps = WrappedPageTemplateProps ; export function createLazyObservabilityPageTemplate ( injectedDeps ) { return ( pageTemplateProps ) => ( < React . Suspense fallback = { null } > < LazyObservabilityPageTemplate { ... pageTemplateProps } { ... injectedDeps } /> < /React.Suspense>); }