import {
  Bomb,
  Crosshair,
  Crown,
  Flame,
  type LucideIcon,
  Shield,
  Sparkles,
  Swords,
  Target,
} from "lucide-react"

const iconMap: Record<string, LucideIcon> = {
  Swords,
  Crown,
  Crosshair,
  Sparkles,
  Flame,
  Target,
  Shield,
  Bomb,
}

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