diff --git a/web/app/components/app/chat/answer/index.tsx b/web/app/components/app/chat/answer/index.tsx index 7138aeba881e40..af37d60b05129b 100644 --- a/web/app/components/app/chat/answer/index.tsx +++ b/web/app/components/app/chat/answer/index.tsx @@ -1,13 +1,13 @@ 'use client' import type { FC, ReactNode } from 'react' -import React, { useState } from 'react' +import React, { useRef, useState } from 'react' import { useTranslation } from 'react-i18next' import { UserCircleIcon } from '@heroicons/react/24/solid' import cn from 'classnames' import type { CitationItem, DisplayScene, FeedbackFunc, Feedbacktype, IChatItem } from '../type' import OperationBtn from '../operation' import LoadingAnim from '../loading-anim' -import { EditIconSolid, RatingIcon } from '../icon-component' +import { RatingIcon } from '../icon-component' import s from '../style.module.css' import MoreInfo from '../more-info' import CopyBtn from '../copy-btn' @@ -26,16 +26,8 @@ import { MessageFast } from '@/app/components/base/icons/src/vender/solid/commun import type { Emoji } from '@/app/components/tools/types' import type { VisionFile } from '@/types/app' import ImageGallery from '@/app/components/base/image-gallery' +import Log from '@/app/components/app/chat/log' -const Divider: FC<{ name: string }> = ({ name }) => { - const { t } = useTranslation() - return