fix: replace emoji game icons with lucide-react icons
This commit is contained in:
@@ -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} />
|
||||
}
|
||||
Reference in New Issue
Block a user