/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type React from 'react'; import { Box, Text } from 'ink'; import { theme } from '../../semantic-colors.js'; import { type ToolDefinition } from '../../types.js'; import { MarkdownDisplay } from '../../utils/MarkdownDisplay.js'; interface ToolsListProps { tools: readonly ToolDefinition[]; showDescriptions: boolean; terminalWidth: number; } export const ToolsList: React.FC = ({ tools, showDescriptions, terminalWidth, }) => ( Available Gemini CLI tools: {tools.length > 0 ? ( tools.map((tool) => ( {' '}- {tool.displayName} ({tool.name}) {showDescriptions && tool.description && ( )} )) ) : ( No tools available )} );