mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
5b9858a8a3
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: Gillian97 <jinling.sunshine@gmail.com>
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
|