import React from 'react' import { Box } from '@anthropic/ink' import { BashTool } from '../tools/BashTool/BashTool.js' import type { ShellProgress } from '../types/tools.js' import { UserBashInputMessage } from './messages/UserBashInputMessage.js' import { ShellProgressMessage } from './shell/ShellProgressMessage.js' type Props = { input: string progress: ShellProgress | null verbose: boolean } export function BashModeProgress({ input, progress, verbose, }: Props): React.ReactNode { return ( ${input}`, type: 'text' }} /> {progress ? ( ) : ( BashTool.renderToolUseProgressMessage?.([], { verbose, tools: [], terminalSize: undefined, }) )} ) }