Some checks failed
CI / build-check-test (push) Has been cancelled
Document main/upstream-sync/feature branch strategy, add sync/push scripts, track .pi/agent extensions and webui in git, and disable startup changelog via showChangelogOnStartup. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
535 B
TypeScript
20 lines
535 B
TypeScript
import { deriveToolCallSummary } from "../../utils/toolCall";
|
|
import styles from "./ToolCallBlock.module.css";
|
|
|
|
interface ToolCallBlockProps {
|
|
content: string;
|
|
}
|
|
|
|
export function ToolCallBlock({ content }: ToolCallBlockProps) {
|
|
return (
|
|
<details className={styles.collapsible}>
|
|
<summary className={styles.summary}>
|
|
<span className={styles.summaryText}>{deriveToolCallSummary(content)}</span>
|
|
</summary>
|
|
<div className={styles.detail}>
|
|
<pre className={styles.detailPre}>{content}</pre>
|
|
</div>
|
|
</details>
|
|
);
|
|
}
|