You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

basic-content.tsx 474B

12345678910111213141516171819202122
  1. import type { FC } from 'react'
  2. import type { ChatItem } from '../../types'
  3. import { Markdown } from '@/app/components/base/markdown'
  4. type BasicContentProps = {
  5. item: ChatItem
  6. }
  7. const BasicContent: FC<BasicContentProps> = ({
  8. item,
  9. }) => {
  10. const {
  11. annotation,
  12. content,
  13. } = item
  14. if (annotation?.logAnnotation)
  15. return <Markdown content={annotation?.logAnnotation.content || ''} />
  16. return <Markdown content={content} />
  17. }
  18. export default BasicContent