'use client'; import { DebugName } from '@/components/game/debug/debug-context'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Star, Lock } from 'lucide-react'; import { useManaStore } from '@/lib/game/stores'; import { ELEMENTS } from '@/lib/game/constants'; export function ElementDebug() { const elements = useManaStore((s) => s.elements); const handleUnlockElement = (element: string) => { useManaStore.getState().unlockElement(element, 500); }; const handleAddElementalMana = (element: string, amount: number) => { const elem = elements?.[element]; if (elem?.unlocked) { useManaStore.getState().addElementMana(element, amount, elem.max); } }; return ( Elemental Mana
{Object.entries(elements || {}).map(([id, elem]) => { const def = ELEMENTS[id]; return (
{def?.sym}
{def?.name}
{elem.current}/{elem.max}
{!elem.unlocked && ( )} {elem.unlocked && ( )}
); })}
); } ElementDebug.displayName = "ElementDebug";