history-panel useDocLink

pull/20801/head
Bowen Liang 12 months ago
parent 297df9b3ef
commit e73ed700e6

@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next'
import OperationBtn from '@/app/components/app/configuration/base/operation-btn'
import Panel from '@/app/components/app/configuration/base/feature-panel'
import { MessageClockCircle } from '@/app/components/base/icons/src/vender/solid/general'
import { getDocLink } from '@/context/i18n'
import { useDocLink } from '@/i18n/language'
type Props = {
showWarning: boolean
@ -17,6 +17,7 @@ const HistoryPanel: FC<Props> = ({
onShowEditModal,
}) => {
const { t } = useTranslation()
const docLink = useDocLink()
return (
<Panel
@ -42,7 +43,7 @@ const HistoryPanel: FC<Props> = ({
{showWarning && (
<div className='flex justify-between rounded-b-xl bg-background-section-burn px-3 py-2 text-xs text-text-secondary'>
<div>{t('appDebug.feature.conversationHistory.tip')}
<a href={getDocLink('/learn-more/extended-reading/what-is-llmops',
<a href={docLink('/learn-more/extended-reading/what-is-llmops',
{ 'zh-hans': '/learn-more/extended-reading/prompt-engineering/README' })}
target='_blank' rel='noopener noreferrer'
className='text-[#155EEF]'>{t('appDebug.feature.conversationHistory.learnMore')}

Loading…
Cancel
Save