'use client'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { ATTUNEMENTS_DEF } from '@/lib/game/data/attunements'; import { Sparkles, Unlock } from 'lucide-react'; import type { GameStore } from '@/lib/game/types'; interface AttunementDebugProps { store: GameStore; } export function AttunementDebug({ store }: AttunementDebugProps) { const handleUnlockAttunement = (id: string) => { // Debug action to unlock attunements if (store.debugUnlockAttunement) { store.debugUnlockAttunement(id); } }; const handleAddAttunementXP = (id: string, amount: number) => { if (store.debugAddAttunementXP) { store.debugAddAttunementXP(id, amount); } }; return ( Attunements {Object.entries(ATTUNEMENTS_DEF).map(([id, def]) => { const isActive = store.attunements?.[id]?.active; const level = store.attunements?.[id]?.level || 1; const xp = store.attunements?.[id]?.experience || 0; return (
{def.icon}
{def.name}
{isActive && (
Lv.{level} • {xp} XP
)}
{!isActive && ( )} {isActive && ( <> )}
); })}
); }