import type { ToolCallView } from '@/lib/types'; interface Sheet { name: string; rows: number; cols: number; columns: string[]; head: string[][] } export function FileAnalysisCard({ call }: { call: ToolCallView }) { const p = call.payload as { filename?: string; kind?: string; preview?: { sheets?: Sheet[]; pages?: number; text_pages?: number }; summary?: string }; const sheets = p.preview?.sheets || []; return (
| {c} | )}
|---|
| {c} | )}
{p.summary}
}