import { ArrowRight } from 'lucide-react'; import type { ToolCallView } from '@/lib/types'; import { fmtNum } from '@/lib/format'; export function UnitConvertCard({ call }: { call: ToolCallView }) { const p = call.payload as { value?: number; from?: string; to?: string; result?: number; factor?: number; formula?: string; kind?: string }; if (p.result === undefined) return
{call.summary}
; return (