fix: chat agent mode content copy (#2418)

This commit is contained in:
zxhlyh 2024-02-07 21:23:47 +08:00 • committed by GitHub
commit 1b04382a9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 166 additions and 133 deletions

View file

@ -1,4 +1,5 @@
import type { FC } from 'react'
import { memo } from 'react'
import type { ChatItem } from '../../types'
import { Markdown } from '@/app/components/base/markdown'
@ -19,4 +20,4 @@ const BasicContent: FC<BasicContentProps> = ({
return <Markdown content={content} />
}
export default BasicContent
export default memo(BasicContent)