Compare commits

...

1 Commits

Author SHA1 Message Date
yyh
57049121bf refactor(web): remove React.FC from citation 2026-08-09 19:59:15 +08:00

View File

@@ -1,4 +1,3 @@
import type { FC } from 'react'
import type { CitationItem } from '../type'
import { useEffect, useMemo, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
@@ -16,11 +15,11 @@ type CitationProps = {
showHitInfo?: boolean
containerClassName?: string
}
const Citation: FC<CitationProps> = ({
const Citation = ({
data,
showHitInfo,
containerClassName = 'chat-answer-container',
}) => {
}: CitationProps) => {
const { t } = useTranslation()
const elesRef = useRef<HTMLDivElement[]>([])
const [limitNumberInOneLine, setLimitNumberInOneLine] = useState(0)