mirror of
https://github.com/docmost/docmost.git
synced 2026-05-21 09:14:07 +08:00
b7b99cb3b2
* fix table * fix code splitting * fix: editor ready check * fix codeblock/mermaid gap cursor * fix callout
15 lines
408 B
TypeScript
15 lines
408 B
TypeScript
import { lazy, Suspense } from "react";
|
|
import { EditorMenuProps } from "@/features/editor/components/table/types/types.ts";
|
|
|
|
const ExcalidrawMenu = lazy(
|
|
() => import("@/features/editor/components/excalidraw/excalidraw-menu.tsx"),
|
|
);
|
|
|
|
export default function ExcalidrawMenuLazy(props: EditorMenuProps) {
|
|
return (
|
|
<Suspense fallback={null}>
|
|
<ExcalidrawMenu {...props} />
|
|
</Suspense>
|
|
);
|
|
}
|