import Link from "next/link"; import { MessageSquareQuote, FileCode2, Palette, SlidersHorizontal, Table2, Database, FileText, Wrench, type LucideIcon } from "lucide-react"; import type { ToolMeta } from "@/lib/tools/_shared/types"; // Явная карта (не `import * as Icons`) — иначе весь набор lucide попадает в бандл. const ICONS: Record = { MessageSquareQuote, FileCode2, Palette, SlidersHorizontal, Table2, Database, FileText, }; export function ToolCard({ tool }: { tool: ToolMeta }) { const Icon = ICONS[tool.icon] ?? Wrench; return (
{tool.title}

{tool.description}

); }