'use client' import type { ArtifactSpec } from '@/types/chat' import { ChatChart } from './ChatChart' import { ChatDataTable } from './ChatDataTable' import { ChatKpiCards } from './ChatKpiCards' import { ChatAgingBuckets } from './ChatAgingBuckets' interface ArtifactRendererProps { artifact: ArtifactSpec } export function ArtifactRenderer({ artifact }: ArtifactRendererProps) { switch (artifact.type) { case 'bar_chart': case 'line_chart': case 'pie_chart': case 'stacked_bar': return (