| getUrl, | getUrl, | ||||
| stopChatMessageResponding, | stopChatMessageResponding, | ||||
| } from '@/service/share' | } from '@/service/share' | ||||
| import AnswerIcon from '@/app/components/base/answer-icon' | |||||
| const ChatWrapper = () => { | const ChatWrapper = () => { | ||||
| const { | const { | ||||
| ) | ) | ||||
| }, [ | }, [ | ||||
| chatListRef, | chatListRef, | ||||
| appConfig, | |||||
| currentConversationId, | currentConversationId, | ||||
| currentConversationItem, | currentConversationItem, | ||||
| handleSend, | handleSend, | ||||
| isMobile, | isMobile, | ||||
| ]) | ]) | ||||
| const answerIcon = (appData?.site && appData.site.use_icon_as_answer_icon) | |||||
| ? <AnswerIcon | |||||
| iconType={appData.site.icon_type} | |||||
| icon={appData.site.icon} | |||||
| background={appData.site.icon_background} | |||||
| imageUrl={appData.site.icon_url} | |||||
| /> | |||||
| : null | |||||
| return ( | return ( | ||||
| <div | <div | ||||
| className='h-full bg-chatbot-bg overflow-hidden' | className='h-full bg-chatbot-bg overflow-hidden' | ||||
| allToolIcons={appMeta?.tool_icons || {}} | allToolIcons={appMeta?.tool_icons || {}} | ||||
| onFeedback={handleFeedback} | onFeedback={handleFeedback} | ||||
| suggestedQuestions={suggestedQuestions} | suggestedQuestions={suggestedQuestions} | ||||
| answerIcon={answerIcon} | |||||
| hideProcessDetail | hideProcessDetail | ||||
| themeBuilder={themeBuilder} | themeBuilder={themeBuilder} | ||||
| /> | /> |