import {
  Crosshair,
  Crown,
  Flame,
  Ghost,
  type LucideIcon,
  Radar,
  Shield,
  Sparkles,
  Star,
  Sword,
  Swords,
  Target,
  Zap,
} from "lucide-react"

const iconMap: Record<string, LucideIcon> = {
  Swords,
  Crown,
  Crosshair,
  Sparkles,
  Flame,
  Target,
  Shield,
  Zap,
  Sword,
  Star,
  Ghost,
  Radar,
}

export function GameIcon({ name, className }: { name: string; className?: string }) {
  const Icon = iconMap[name]
  if (!Icon) return null
  return <Icon className={className} />
}
