import {
  Compass,
  Heart,
  Home,
  Lightbulb,
  MapPin,
  MessageCircle,
  Shield,
  Sparkles,
  Users,
  UsersRound,
  type LucideIcon,
} from 'lucide-react';

const iconMap: Record<string, LucideIcon> = {
  users: Users,
  compass: Compass,
  shield: Shield,
  heart: Heart,
  'message-circle': MessageCircle,
  sparkles: Sparkles,
  lightbulb: Lightbulb,
  'map-pin': MapPin,
  home: Home,
  'users-round': UsersRound,
};

export function ServiceIcon({ name, className = 'h-6 w-6' }: { name: string; className?: string }) {
  const Icon = iconMap[name] ?? Sparkles;
  return <Icon className={className} aria-hidden />;
}
