Import source: app/src/components/lazy-diagram
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
import { lazy, Suspense } from 'react';
|
||||||
|
|
||||||
|
const DiagramRendererLazy = lazy(() =>
|
||||||
|
import('../../teknav-diagrams.jsx').then(m => ({ default: m.DiagramRenderer }))
|
||||||
|
);
|
||||||
|
|
||||||
|
export function LazyDiagram(props) {
|
||||||
|
return (
|
||||||
|
<Suspense fallback={<div className="tek-diagram-skeleton" aria-hidden="true" />}>
|
||||||
|
<DiagramRendererLazy {...props} />
|
||||||
|
</Suspense>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user