'use client'; import { Button } from '@/components/ui/button'; import { Progress } from '@/components/ui/progress'; import { Card, CardContent } from '@/components/ui/card'; import { Zap } from 'lucide-react'; import { fmt, fmtDec } from '@/lib/game/store'; interface ManaDisplayProps { rawMana: number; maxMana: number; effectiveRegen: number; meditationMultiplier: number; clickMana: number; isGathering: boolean; onGatherStart: () => void; onGatherEnd: () => void; } export function ManaDisplay({ rawMana, maxMana, effectiveRegen, meditationMultiplier, clickMana, isGathering, onGatherStart, onGatherEnd, }: ManaDisplayProps) { return (
{fmt(rawMana)} / {fmt(maxMana)}
+{fmtDec(effectiveRegen)} mana/hr {meditationMultiplier > 1.01 && ({fmtDec(meditationMultiplier, 1)}x med)}
); }