index.tsx 1.3 KB

123456789101112131415161718192021222324252627282930
  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 { MessageSmileSquare } from '@/app/components/base/icons/src/vender/solid/communication'
  9. import TooltipPlus from '@/app/components/base/tooltip-plus'
  10. const SuggestedQuestionsAfterAnswer: FC = () => {
  11. const { t } = useTranslation()
  12. return (
  13. <div className='flex items-center px-3 h-12 bg-gray-50 rounded-xl overflow-hidden'>
  14. <div className='shrink-0 flex items-center justify-center mr-1 w-6 h-6'>
  15. <MessageSmileSquare className='w-4 h-4 text-[#06AED4]' />
  16. </div>
  17. <div className='shrink-0 mr-2 flex items-center whitespace-nowrap text-sm text-gray-800 font-semibold'>
  18. <div className='mr-2'>{t('appDebug.feature.suggestedQuestionsAfterAnswer.title')}</div>
  19. <TooltipPlus popupContent={t('appDebug.feature.suggestedQuestionsAfterAnswer.description')}>
  20. <RiQuestionLine className='w-[14px] h-[14px] text-gray-400' />
  21. </TooltipPlus>
  22. </div>
  23. <div className='grow'></div>
  24. <div className='text-xs text-gray-500'>{t('appDebug.feature.suggestedQuestionsAfterAnswer.resDes')}</div>
  25. </div>
  26. )
  27. }
  28. export default React.memo(SuggestedQuestionsAfterAnswer)