fix: replace emoji game icons with lucide-react icons

This commit is contained in:
zetaloop
2026-02-20 20:07:40 +08:00
parent 7cf482e2f7
commit 082da2ff0c
2 changed files with 36 additions and 8 deletions
+28
View File
@@ -0,0 +1,28 @@
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} />
}