mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-28 19:01:59 +08:00

Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Yeuoly <admin@srmxy.cn> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: jyong <jyong@dify.ai> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: jyong <718720800@qq.com>
29 lines
1.3 KiB
TypeScript
29 lines
1.3 KiB
TypeScript
'use client'
|
|
import type { FC } from 'react'
|
|
import React from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { HelpCircle } from '@/app/components/base/icons/src/vender/line/general'
|
|
import { MessageSmileSquare } from '@/app/components/base/icons/src/vender/solid/communication'
|
|
import TooltipPlus from '@/app/components/base/tooltip-plus'
|
|
|
|
const SuggestedQuestionsAfterAnswer: FC = () => {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div className='flex items-center px-3 h-12 bg-gray-50 rounded-xl overflow-hidden'>
|
|
<div className='shrink-0 flex items-center justify-center mr-1 w-6 h-6'>
|
|
<MessageSmileSquare className='w-4 h-4 text-[#06AED4]' />
|
|
</div>
|
|
<div className='shrink-0 mr-2 flex items-center whitespace-nowrap text-sm text-gray-800 font-semibold'>
|
|
<div className='mr-2'>{t('appDebug.feature.suggestedQuestionsAfterAnswer.title')}</div>
|
|
<TooltipPlus popupContent={t('appDebug.feature.suggestedQuestionsAfterAnswer.description')}>
|
|
<HelpCircle className='w-[14px] h-[14px] text-gray-400' />
|
|
</TooltipPlus>
|
|
</div>
|
|
<div className='grow'></div>
|
|
<div className='text-xs text-gray-500'>{t('appDebug.feature.suggestedQuestionsAfterAnswer.resDes')}</div>
|
|
</div>
|
|
)
|
|
}
|
|
export default React.memo(SuggestedQuestionsAfterAnswer)
|