feat: replace lucide icons
This commit is contained in:
parent
44f93d338e
commit
3c34307ab0
15 changed files with 457 additions and 204 deletions
|
|
@ -1,12 +1,11 @@
|
|||
import { Message } from 'ai-connector'
|
||||
import { User } from 'lucide-react'
|
||||
import remarkGfm from 'remark-gfm'
|
||||
import remarkMath from 'remark-math'
|
||||
|
||||
import { cn } from '@/lib/utils'
|
||||
import { CodeBlock } from '@/components/ui/codeblock'
|
||||
import { OpenAI } from '@/components/icons'
|
||||
import { MemoizedReactMarkdown } from '@/components/markdown'
|
||||
import { IconOpenAI, IconUser } from '@/components/ui/icons'
|
||||
|
||||
export interface ChatMessageProps {
|
||||
message: Message
|
||||
|
|
@ -23,11 +22,7 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) {
|
|||
: 'bg-primary text-primary-foreground'
|
||||
)}
|
||||
>
|
||||
{message.role === 'user' ? (
|
||||
<User className="h-4 w-4" />
|
||||
) : (
|
||||
<OpenAI className="h-4 w-4" />
|
||||
)}
|
||||
{message.role === 'user' ? <IconUser /> : <IconOpenAI />}
|
||||
</div>
|
||||
<div className="ml-4 px-1">
|
||||
<MemoizedReactMarkdown
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue