tldraw/components/editor.tsx

21 lines
445 B
TypeScript
Raw Normal View History

2021-05-12 11:27:33 +00:00
import useKeyboardEvents from "hooks/useKeyboardEvents"
import useLoadOnMount from "hooks/useLoadOnMount"
2021-05-09 13:04:42 +00:00
import Canvas from "./canvas/canvas"
import StatusBar from "./status-bar"
import Toolbar from "./toolbar"
2021-05-14 22:56:41 +00:00
import CodePanel from "./code-panel/code-panel"
2021-05-09 13:04:42 +00:00
export default function Editor() {
2021-05-12 11:27:33 +00:00
useKeyboardEvents()
useLoadOnMount()
2021-05-12 11:27:33 +00:00
2021-05-09 13:04:42 +00:00
return (
<>
<Canvas />
<StatusBar />
<Toolbar />
2021-05-16 08:33:08 +00:00
<CodePanel />
2021-05-09 13:04:42 +00:00
</>
)
}