import React , { lazy , Suspense } from 'react' ; import { EuiLoadingSpinner } from '@elastic/eui' ; import type { TimeseriesEditorProps } from './vis_editor' ; const VisEditorComponent = lazy ( ( ) => import ( './vis_editor' ) ) ; export const VisEditor = ( props ) => ( < Suspense fallback = { < EuiLoadingSpinner / > } > < VisEditorComponent { ... props } / > < /Suspense>);