mirror of
https://github.com/logseq/logseq.git
synced 2026-04-25 14:44:53 +00:00
move tldraw/next inside of logseq
This commit is contained in:
@@ -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>
|
||||
)
|
||||
})
|
||||
Reference in New Issue
Block a user