/* eslint-disable @typescript-eslint/no-explicit-any */ import * as React from 'react' import { Tldraw, TldrawApp, useFileSystem } from '@tldraw/tldraw' declare const window: Window & { app: TldrawApp } export default function Develop() { const rTldrawApp = React.useRef() const fileSystemEvents = useFileSystem() const handleMount = React.useCallback((app: TldrawApp) => { window.app = app rTldrawApp.current = app // app.reset() // app.createShapes({ // id: 'box1', // type: TDShapeType.Rectangle, // point: [200, 200], // size: [200, 200], // }) }, []) const handlePersist = React.useCallback(() => { // noop }, []) return (
) }