()
| 45 | }; |
| 46 | |
| 47 | const getStatusIcon = () => { |
| 48 | if (state === "call") { |
| 49 | if (isLatestMessage && status !== "ready") { |
| 50 | return <Loader2 className="animate-spin h-3.5 w-3.5 text-primary/70" />; |
| 51 | } |
| 52 | return ( |
| 53 | <Circle className="h-3.5 w-3.5 fill-muted-foreground/10 text-muted-foreground/70" /> |
| 54 | ); |
| 55 | } |
| 56 | return <CheckCircle2 size={14} className="text-primary/90" />; |
| 57 | }; |
| 58 | |
| 59 | const getStatusClass = () => { |
| 60 | if (state === "call") { |