mirror of https://github.com/grafana/grafana.git
15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
|
import React, { Suspense } from 'react';
|
||
|
|
||
|
import MonacoQueryField from './MonacoQueryField';
|
||
|
import { Props } from './MonacoQueryFieldProps';
|
||
|
|
||
|
// const Field = React.lazy(() => import('./MonacoQueryField'));
|
||
|
|
||
|
export const MonacoQueryFieldLazy = (props: Props) => {
|
||
|
return (
|
||
|
<Suspense fallback={null}>
|
||
|
<MonacoQueryField {...props} />
|
||
|
</Suspense>
|
||
|
);
|
||
|
};
|