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 (
{fmtNum(p.value ?? 0, 4)} {p.from} {fmtNum(p.result, 4)} {p.to} facteur {fmtNum(p.factor ?? 0, 6)} ยท {p.kind}
); }