11import { FC , useContext , useState } from 'react' ;
2- import { ChunkProps , UserCredentials } from '../../types' ;
2+ import { ChunkProps } from '../../types' ;
33import { LoadingSpinner , TextLink , Typography } from '@neo4j-ndl/react' ;
44import { DocumentTextIconOutline , GlobeAltIconOutline } from '@neo4j-ndl/react/icons' ;
55import wikipedialogo from '../../assets/images/wikipedia.svg' ;
@@ -10,13 +10,11 @@ import ReactMarkdown from 'react-markdown';
1010import { generateYouTubeLink , getLogo , isAllowedHost } from '../../utils/Utils' ;
1111import { ThemeWrapperContext } from '../../context/ThemeWrapper' ;
1212import { chatModeLables } from '../../utils/Constants' ;
13- import { useCredentials } from '../../context/UserCredentials' ;
1413import GraphViewModal from '../Graph/GraphViewModal' ;
1514import { handleGraphNodeClick } from './chatInfo' ;
1615
1716const ChunkInfo : FC < ChunkProps > = ( { loading, chunks, mode } ) => {
1817 const themeUtils = useContext ( ThemeWrapperContext ) ;
19- const { userCredentials } = useCredentials ( ) ;
2018 const [ neoNodes , setNeoNodes ] = useState < any [ ] > ( [ ] ) ;
2119 const [ neoRels , setNeoRels ] = useState < any [ ] > ( [ ] ) ;
2220 const [ openGraphView , setOpenGraphView ] = useState ( false ) ;
@@ -25,7 +23,6 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
2523
2624 const handleChunkClick = ( elementId : string , viewMode : string ) => {
2725 handleGraphNodeClick (
28- userCredentials as UserCredentials ,
2926 elementId ,
3027 viewMode ,
3128 setNeoNodes ,
0 commit comments