import type { ToolCall } from "../data/types"; import styles from "./ToolCallBadge.module.css"; interface Props { toolCall: ToolCall; } export default function ToolCallBadge({ toolCall }: Props) { const argsPreview = (() => { try { return JSON.stringify(toolCall.arguments); } catch { return "{}"; } })(); return ( ⚙ {toolCall.name}({argsPreview}) ); }