mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
20 lines
655 B
TypeScript
20 lines
655 B
TypeScript
|
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'
|
||
|
import { TreeView } from '@lexical/react/LexicalTreeView'
|
||
|
|
||
|
const TreeViewPlugin = () => {
|
||
|
const [editor] = useLexicalComposerContext()
|
||
|
return (
|
||
|
<TreeView
|
||
|
viewClassName="tree-view-output"
|
||
|
treeTypeButtonClassName="debug-treetype-button"
|
||
|
timeTravelPanelClassName="debug-timetravel-panel"
|
||
|
timeTravelButtonClassName="debug-timetravel-button"
|
||
|
timeTravelPanelSliderClassName="debug-timetravel-panel-slider"
|
||
|
timeTravelPanelButtonClassName="debug-timetravel-panel-button"
|
||
|
editor={editor}
|
||
|
/>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default TreeViewPlugin
|