import { Sparkles, User, ListChecks } from 'lucide-react' import { MarkdownContent } from '@/components/ui/MarkdownContent' import { SuggestedFlowCard } from './SuggestedFlowCard' import type { SuggestedFlow } from '@/types/copilot' interface ChatMessageProps { role: 'user' | 'assistant' content: string suggestedFlows?: SuggestedFlow[] imageUrls?: string[] /** When set on an assistant message, renders a leading "Next steps · N pending" * emphasis above the bubble. Used on the current turn only — the canonical * list of items lives in the TaskLane. */ actionCount?: number } export function ChatMessage({ role, content, suggestedFlows, imageUrls, actionCount }: ChatMessageProps) { const hasActionEmphasis = role === 'assistant' && actionCount !== undefined && actionCount > 0 return (