'use client'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Separator } from '@/components/ui/separator'; import { FlaskConical } from 'lucide-react'; import { ELEMENTS } from '@/lib/game/constants'; import { fmt, fmtDec } from '@/lib/game/stores'; import { usePrestigeStore, useManaStore } from '@/lib/game/stores'; interface ElementStatsSectionProps { elemMax: number; } export function ElementStatsSection({ elemMax }: ElementStatsSectionProps) { const prestigeUpgrades = usePrestigeStore((s) => s.prestigeUpgrades); const elements = useManaStore((s) => s.elements); return ( Element Stats
Element Capacity: {elemMax}
Prestige Attunement: +{(prestigeUpgrades.elementalAttune || 0) * 25}
Unlocked Elements: {Object.values(elements || {}).filter((e: any) => e.unlocked).length} / {Object.keys(ELEMENTS).length}
Elemental Mana Pools:
{Object.entries(elements) .filter(([, state]: [string, any]) => state.unlocked) .map(([id, state]: [string, any]) => { const def = ELEMENTS[id]; return (
{def?.sym}
{state.current}/{state.max}
); })}
); }