move tldraw/next inside of logseq

This commit is contained in:
Peng Xiao
2022-05-16 19:55:07 +08:00
parent a62d6e7e90
commit e02a7dd344
434 changed files with 34554 additions and 38456 deletions

View File

@@ -0,0 +1,15 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as React from 'react'
import { observer } from 'mobx-react-lite'
import { useApp } from '@tldraw/react'
import type { Shape } from '~lib'
export const StatusBar = observer(function StatusBar() {
const app = useApp<Shape>()
return (
<div className="statusbar">
{app.selectedTool.id} | {app.selectedTool.currentState.id}
</div>
)
})