@@ -6,6 +6,7 @@ import { useState, useRef, useEffect, useCallback } from 'react';
66import { createPortal } from 'react-dom' ;
77import { useFlexibleAI , type Message as AIMessage } from '@/hooks/useFlexibleAI' ;
88import { toast } from '@/components/common' ;
9+ import { logoUrl } from '@/lib/assets' ;
910import {
1011 Send ,
1112 X ,
@@ -34,7 +35,7 @@ function MessageBubble({ message }: { message: AIMessage }) {
3435 { isUser ? (
3536 < User className = "w-4 h-4 text-white/70" />
3637 ) : (
37- < img src = "/logo.jpg" alt = "AI" className = "w-6 h-6 rounded-full" />
38+ < img src = { logoUrl } alt = "AI" className = "w-6 h-6 rounded-full" />
3839 ) }
3940 </ div >
4041
@@ -142,7 +143,7 @@ function AIModal({
142143 < div className = "flex items-center justify-between px-5 py-4 border-b border-white/10 bg-[#111]" >
143144 < div className = "flex items-center gap-3" >
144145 < div className = "relative" >
145- < img src = "/logo.jpg" alt = "AI" className = "w-8 h-8 rounded-lg" />
146+ < img src = { logoUrl } alt = "AI" className = "w-8 h-8 rounded-lg" />
146147 < div className = "absolute -bottom-0.5 -right-0.5 w-2.5 h-2.5 bg-green-500 rounded-full border-2 border-[#111]" />
147148 </ div >
148149 < div >
@@ -291,7 +292,7 @@ export function FlexibleAI({ collapsed }: FlexibleAIProps) {
291292 title = "Open Flexible AI"
292293 >
293294 < div className = "relative" >
294- < img src = "/logo.jpg" alt = "AI" className = { `rounded ${ collapsed ? 'w-5 h-5' : 'w-6 h-6' } ` } />
295+ < img src = { logoUrl } alt = "AI" className = { `rounded ${ collapsed ? 'w-5 h-5' : 'w-6 h-6' } ` } />
295296 < div className = "absolute -bottom-0.5 -right-0.5 w-2 h-2 bg-green-500 rounded-full border border-[hsl(var(--card))]" />
296297 </ div >
297298 { ! collapsed && (
0 commit comments