import { Brain, ChevronRight } from 'lucide-react' import type { Conversation, Customer, CustomerStage } from '@/types' import { Button } from '@/components/ui/button' import { CustomerStageBadge, IntentScoreBadge, RiskLevelBadge, SentimentBadge, } from '@/components/common/StatusBadges' const validStages = new Set([ 'initial', 'comparing', 'sample', 'custom', 'closing', 'fulfillment', 'aftersales', 'repurchase', ]) export function ConversationInsightBar({ customer, conversation, onOpenProfile, }: { customer: Customer conversation: Conversation onOpenProfile: () => void }) { const stage = validStages.has(customer.stage) ? customer.stage : 'initial' const summary = customer.aiProfile?.summary || conversation.summary || '收到更多客户消息后将补充客户画像' return (
客户洞察

{summary}

意向
意向
) }