您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415
  1. import { useFetchKnowledgeGraph } from '@/hooks/knowledge-hooks';
  2. import React from 'react';
  3. import ForceGraph from './force-graph';
  4. const KnowledgeGraphModal: React.FC = () => {
  5. const { data } = useFetchKnowledgeGraph();
  6. return (
  7. <section className={'w-full h-full'}>
  8. <ForceGraph data={data?.graph} show></ForceGraph>
  9. </section>
  10. );
  11. };
  12. export default KnowledgeGraphModal;