您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.tsx 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import { useTranslation } from 'react-i18next'
  5. import {
  6. RiQuestionLine,
  7. } from '@remixicon/react'
  8. import Panel from '@/app/components/app/configuration/base/feature-panel'
  9. import SuggestedQuestionsAfterAnswerIcon from '@/app/components/app/configuration/base/icons/suggested-questions-after-answer-icon'
  10. import Tooltip from '@/app/components/base/tooltip'
  11. const SuggestedQuestionsAfterAnswer: FC = () => {
  12. const { t } = useTranslation()
  13. return (
  14. <Panel
  15. title={
  16. <div className='flex items-center gap-2'>
  17. <div>{t('appDebug.feature.suggestedQuestionsAfterAnswer.title')}</div>
  18. <Tooltip htmlContent={<div className='w-[180px]'>
  19. {t('appDebug.feature.suggestedQuestionsAfterAnswer.description')}
  20. </div>} selector='suggestion-question-tooltip'>
  21. <RiQuestionLine className='w-[14px] h-[14px] text-gray-400' />
  22. </Tooltip>
  23. </div>
  24. }
  25. headerIcon={<SuggestedQuestionsAfterAnswerIcon />}
  26. headerRight={
  27. <div className='text-xs text-gray-500'>{t('appDebug.feature.suggestedQuestionsAfterAnswer.resDes')}</div>
  28. }
  29. noBodySpacing
  30. />
  31. )
  32. }
  33. export default React.memo(SuggestedQuestionsAfterAnswer)