diff --git a/components/Chat/ChatMessage.tsx b/components/Chat/ChatMessage.tsx index 19481d8..5a762b8 100644 --- a/components/Chat/ChatMessage.tsx +++ b/components/Chat/ChatMessage.tsx @@ -1,5 +1,11 @@ import { Message } from '@/types/chat'; -import { IconCheck, IconCopy, IconEdit, IconUser, IconRobot } from '@tabler/icons-react'; +import { + IconCheck, + IconCopy, + IconEdit, + IconUser, + IconRobot, +} from '@tabler/icons-react'; import { useTranslation } from 'next-i18next'; import { FC, memo, useEffect, useRef, useState } from 'react'; import rehypeMathjax from 'rehype-mathjax'; @@ -81,7 +87,11 @@ export const ChatMessage: FC = memo( >
- {message.role === 'assistant' ? : } + {message.role === 'assistant' ? ( + + ) : ( + + )}
@@ -136,7 +146,7 @@ export const ChatMessage: FC = memo(