'use client' import { TrendingUp, TrendingDown, Minus } from 'lucide-react' import type { KpiCardsArtifact } from '@/types/chat' interface ChatKpiCardsProps { artifact: KpiCardsArtifact } export function ChatKpiCards({ artifact }: ChatKpiCardsProps) { const { title, cards } = artifact return (
{title &&

{title}

}
{cards.map((card, i) => (

{card.label}

{card.value} {card.trend && ( {card.trend === 'up' && } {card.trend === 'down' && } {card.trend === 'flat' && } {card.change} )}
))}
) }