feat: allow users to use the app icon as the answer icon (#7888)

Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
kurokobo
2024-09-02 21:00:41 +09:00
committed by GitHub
parent 6f33351eb3
commit 80aa7c4019
24 changed files with 208 additions and 8 deletions

View File

@@ -22,6 +22,7 @@ import Citation from '@/app/components/base/chat/chat/citation'
import { EditTitle } from '@/app/components/app/annotation/edit-annotation-modal/edit-item'
import type { Emoji } from '@/app/components/tools/types'
import type { AppData } from '@/models/share'
import AnswerIcon from '@/app/components/base/answer-icon'
type AnswerProps = {
item: ChatItem
@@ -89,11 +90,7 @@ const Answer: FC<AnswerProps> = ({
<div className='flex mb-2 last:mb-0'>
<div className='shrink-0 relative w-10 h-10'>
{
answerIcon || (
<div className='flex items-center justify-center w-full h-full rounded-full bg-[#d5f5f6] border-[0.5px] border-black/5 text-xl'>
🤖
</div>
)
answerIcon || <AnswerIcon />
}
{
responding && (