import type { Tool } from "@stirling-image/shared"; import * as icons from "lucide-react"; import { FileImage, Star } from "lucide-react"; import { Link } from "react-router-dom"; import { cn } from "@/lib/utils"; interface ToolCardProps { tool: Tool; } export function ToolCard({ tool }: ToolCardProps) { const iconsMap = icons as unknown as Record>; const IconComponent = iconsMap[tool.icon] || FileImage; return (
{tool.name} {tool.experimental && ( Experimental )}
); }