import HightLightMarkdown from '@/components/highlight-markdown'; import { ImageWithPopover } from '@/components/image'; import { useSelectTestingResult } from '@/hooks/knowledge-hooks'; import { IReference } from '@/interfaces/database/chat'; import { Card, Flex, Input, Layout, List, Skeleton, Space, Tag } from 'antd'; import { useState } from 'react'; import MarkdownContent from '../chat/markdown-content'; import { useSendQuestion } from './hooks'; import SearchSidebar from './sidebar'; import IndentedTree from '@/components/indented-tree/indented-tree'; import styles from './index.less'; const { Content } = Layout; const { Search } = Input; const SearchPage = () => { const [checkedList, setCheckedList] = useState([]); const list = useSelectTestingResult(); const { sendQuestion, answer, sendingLoading, relatedQuestions, mindMap, mindMapLoading, } = useSendQuestion(checkedList); return (
{}} > ( {item.highlight} )} /> {relatedQuestions?.length > 0 && ( {relatedQuestions?.map((x, idx) => ( {x} ))} )}
{mindMapLoading ? ( ) : ( )}
); }; export default SearchPage;