import { Link } from "wouter"; import { Card } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { Star, MessageSquare, Wrench, ChevronRight, Scale } from "lucide-react"; import { ToolWithStats } from "@workspace/api-client-react"; import { MiniBarStack } from "@/components/mini-bars"; import { cn } from "@/lib/utils"; export function ToolCardWide({ tool, density, compare, }: { tool: ToolWithStats; density: "cozy" | "compact"; compare?: { selected: boolean; onToggle: () => void }; }) { const compact = density === "compact"; return (
{tool.iconUrl ? ( { (e.target as HTMLImageElement).style.display = "none"; }} /> ) : ( )}
{tool.name} {tool.category}
{!compact &&

{tool.description}

} {!compact && tool.tags && tool.tags.length > 0 && (
{tool.tags.slice(0, 3).map((tag) => ( {tag} ))} {tool.tags.length > 3 && ( +{tool.tags.length - 3} )}
)}
{tool.avgCombined ? tool.avgCombined.toFixed(1) : "N/A"}
{tool.ratingCount}
{!compact && } {compare && ( )}
); }