mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
19 lines
419 B
TypeScript
19 lines
419 B
TypeScript
![]() |
import PrettyJson from '../../components/Common/PrettyJSON';
|
||
|
import { useRSForm } from '../../context/RSFormContext';
|
||
|
import { GraphNode } from '../../utils/Graph';
|
||
|
|
||
|
function EditorTermGraph() {
|
||
|
const { schema } = useRSForm();
|
||
|
|
||
|
const data: GraphNode[] = [];
|
||
|
schema?.graph.visitDFS(node => data.push(node));
|
||
|
|
||
|
return (
|
||
|
<div>
|
||
|
<PrettyJson data={data} />
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default EditorTermGraph;
|