"use client" import { memo } from "react" import { BotIcon, Loader2Icon } from "lucide-react" import { Avatar, AvatarFallback } from "@/components/ui/avatar" import { ConversationMessageRow } from "@/components/chat/conversation-message-row" import { ConversationMessageBubble } from "@/components/chat/conversation-message-bubble" import { useI18n } from "@/i18n/provider" import { getAgentActivityLabel } from "@/lib/agent-activity-label" import { cn } from "@/lib/utils" export type AgentActivityBubbleProps = { stepCode: string toolName?: string className?: string isCustomer?: boolean } export const AgentActivityBubble = memo(function AgentActivityBubble({ stepCode, toolName, className, isCustomer = true, }: AgentActivityBubbleProps) { const t = useI18n() const label = getAgentActivityLabel({ stepCode, toolName, isCustomer }, t) return ( } contentClassName="max-w-[86%] gap-1.5" className={cn("my-1 animate-in fade-in-50 duration-200", className)} > ) })