--- import { TOOLS, toolSection } from "@snapotter/shared"; import * as lucideIcons from "lucide"; const MODALITY_META: Record = { image: { label: "Image", color: "#E07832" }, video: { label: "Video", color: "#BE4A3C" }, audio: { label: "Audio", color: "#2C7A75" }, document: { label: "PDF", color: "#44568C" }, file: { label: "Data", color: "#5C8642" }, }; function renderIcon(iconName: string): string { const iconData = (lucideIcons as Record)[iconName]; if (!iconData || !Array.isArray(iconData)) return ""; return iconData .map(([tag, attrs]: [string, Record]) => { const attrStr = Object.entries(attrs) .map(([k, v]) => `${k}="${v}"`) .join(" "); return `<${tag} ${attrStr}/>`; }) .join(""); } ---