index.tsx 1.3 KB

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