'use client'; import Image from 'next/image'; const iconMap = { 'API Tool': '/toolIcons/tool_api_tool.svg', 'Brave Search': '/toolIcons/tool_brave.svg', 'DuckDuckGo Search': '/toolIcons/tool_duckduckgo.svg', 'CryptoPrice': '/toolIcons/tool_cryptoprice.svg', 'Ntfy': '/toolIcons/tool_ntfy.svg', 'Telegram Bot': '/toolIcons/tool_telegram.svg', 'PostgreSQL Database': '/toolIcons/tool_postgres.svg', 'Read Webpage (browser)': '/toolIcons/tool_read_webpage.svg', 'Remote Device': '/toolIcons/tool_remote_device.svg', 'MCP Tool': '/toolIcons/tool_mcp_tool.svg', 'Memory': '/toolIcons/tool_memory.svg', 'Notepad': '/toolIcons/tool_notes.svg', 'Todo List': '/toolIcons/tool_todo_list.svg' }; export function ToolCards({ items }) { return ( <>
{items.map(({ title, link, description }) => { const isExternal = link.startsWith('https://'); const iconSrc = iconMap[title]; // No icon rendered when the tool has none return (
{iconSrc &&
{title}
} {/* Reduced icon size */}

{title}

{description &&

{description}

} {/* Card URL element removed from here */}
); })}
); }