import type { JSX } from "react"; import { AgentTerminalBlock } from "./terminal/AgentTerminalBlock"; import type { AgentToolRendererProps } from "./agentToolContentShared"; import { getCommandRenderData, getToolCallFailureText } from "./render-data/agentToolRenderData"; export function AgentBashContent({ call }: AgentToolRendererProps): JSX.Element { "use memo"; const commandData = getCommandRenderData(call); const structuredFailureText = commandData.status === "failed" && !commandData.stdout && !commandData.stderr ? getToolCallFailureText(call) : null; return (