"use client"; // 回响星核 / Echo Nexus — 顶栏资源栏 import { useGameStore } from "@/store/gameStore"; import { formatNum, PRESTIGE } from "@/lib/game/config"; import { Gem, Lightbulb, Waves, RotateCcw } from "lucide-react"; import { Progress } from "@/components/ui/progress"; export function ResourceBar({ onPrestige }: { onPrestige: () => void }) { const crystals = useGameStore((s) => s.crystals); const crystalsPerSec = useGameStore((s) => s.crystalsPerSec); const insights = useGameStore((s) => s.insights); const contact = useGameStore((s) => s.contact); const ascensions = useGameStore((s) => s.ascensions); const blueprints = useGameStore((s) => s.blueprints); return (