refactor: move related apis into one file

This commit is contained in:
Ryan Di
2025-10-20 10:06:25 +11:00
parent 0003cb741c
commit fffd105dc9
16 changed files with 202 additions and 199 deletions

View File

@@ -4,6 +4,7 @@ import {
TTDDialogTrigger,
CaptureUpdateAction,
reconcileElements,
useEditorInterface,
} from "@excalidraw/excalidraw";
import { trackEvent } from "@excalidraw/excalidraw/analytics";
import { getDefaultAppState } from "@excalidraw/excalidraw/appState";
@@ -342,6 +343,8 @@ const ExcalidrawWrapper = () => {
const [langCode, setLangCode] = useAppLangCode();
const editorInterface = useEditorInterface();
// initial state
// ---------------------------------------------------------------------------
@@ -856,6 +859,7 @@ const ExcalidrawWrapper = () => {
onSelect={() =>
setShareDialogState({ isOpen: true, type: "share" })
}
editorInterface={editorInterface}
/>
</div>
);