import Link from "next/link"; import { Wind, Wrench, ThermometerSun, Paintbrush, Droplet, Tv, HelpCircle, ArrowRight, PaintBucket, Refrigerator, Hammer, Key, Bath, PaintRoller, Grid, Layers, AlertTriangle, Waves, Droplets, WashingMachine, Snowflake, Store, ScanLine, Settings } from "lucide-react"; import { cn } from "@/lib/utils"; interface IconCardProps { title: string; description: string; iconName: string; href?: string; className?: string; } const iconMap: Record> = { Wind, Wrench, ThermometerSun, Paintbrush, Droplet, Tv, PaintBucket, Refrigerator, Hammer, Key, Bath, PaintRoller, Grid, Layers, AlertTriangle, Waves, Droplets, WashingMachine, Snowflake, Store, ScanLine, Settings, }; export function IconCard({ title, description, iconName, href, className }: IconCardProps) { const Icon = iconMap[iconName] || HelpCircle; const cardContent = ( <>

{title}

{description}

{href && (
Dowiedz się więcej
)} ); const cardClasses = cn( "group border border-border rounded-xl p-6 bg-white hover:shadow-md transition-all duration-300 flex flex-col justify-between h-full", className ); if (href) { return ( {cardContent} ); } return
{cardContent}
; }