'use client'; 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 unlockElement = useManaStore((s) => s.unlockElement); const addElementMana = useManaStore((s) => s.addElementMana); const handleUnlockElement = (element: string) => { unlockElement(element, 500); }; const handleAddElementalMana = (element: string, amount: number) => { if (addElementMana) { addElementMana(element, amount); } }; 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";