import React from 'react'; import { Icon } from "@/components/icon/Icon"; export const getToolIcon = (toolName: string) => { const iconClass = 'h-3.5 w-3.5 flex-shrink-0'; const tool = toolName.toLowerCase(); if (tool === 'edit' || tool === 'multiedit' || tool === 'apply_patch' || tool === 'str_replace' || tool === 'str_replace_based_edit_tool') { return ; } if (tool === 'write' || tool === 'create' || tool === 'file_write') { return ; } if (tool === 'read' || tool === 'view' || tool === 'file_read' || tool === 'cat') { return ; } if (tool === 'bash' || tool === 'shell' || tool === 'cmd' || tool === 'terminal') { return ; } if (tool === 'list' || tool === 'ls' || tool === 'dir' || tool === 'list_files') { return ; } if (tool === 'search' || tool === 'grep' || tool === 'find' || tool === 'ripgrep') { return ; } if (tool === 'glob') { return ; } if (tool === 'fetch' || tool === 'curl' || tool === 'wget' || tool === 'webfetch') { return ; } if ( tool === 'web-search' || tool === 'websearch' || tool === 'search_web' || tool === 'codesearch' || tool === 'google' || tool === 'bing' || tool === 'duckduckgo' || tool === 'perplexity' ) { return ; } if (tool === 'todowrite' || tool === 'todoread') { return ; } if (tool === 'structuredoutput' || tool === 'structured_output') { return ; } if (tool === 'skill') { return ; } if (tool === 'task') { return ; } if (tool === 'question') { return ; } if (tool === 'lsp') { return ; } if (tool === 'plan_enter') { return ; } if (tool === 'plan_exit') { return ; } if (tool.startsWith('git')) { return ; } return ; };