2805f75f5e
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 57s
- Delete src/lib/game/computed-stats.ts (root-level re-export shim) - Delete src/lib/game/store/index.ts (nothing imports from it) - Update __tests__/computed-stats.test.ts to import from ../utils instead - Clean up craftingStore.ts imports (remove unused useGameStore, CraftingApply) Typecheck and lint pass (pre-existing DisciplinesTab.tsx errors unchanged)
39 lines
865 B
TypeScript
Executable File
39 lines
865 B
TypeScript
Executable File
'use client';
|
|
|
|
import { fmt } from '@/lib/game/stores';
|
|
import { formatHour } from '@/lib/game/utils/formatting';
|
|
|
|
interface TimeDisplayProps {
|
|
day: number;
|
|
hour: number;
|
|
insight: number;
|
|
}
|
|
|
|
export function TimeDisplay({
|
|
day,
|
|
hour,
|
|
insight,
|
|
}: TimeDisplayProps) {
|
|
return (
|
|
<div className="flex items-center gap-4">
|
|
<div className="text-center">
|
|
<div className="text-lg font-bold game-mono text-amber-400">
|
|
Day {day}
|
|
</div>
|
|
<div className="text-xs text-gray-400">
|
|
{formatHour(hour)}
|
|
</div>
|
|
</div>
|
|
|
|
<div className="text-center">
|
|
<div className="text-lg font-bold game-mono text-purple-400">
|
|
{fmt(insight)}
|
|
</div>
|
|
<div className="text-xs text-gray-400">Insight</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
TimeDisplay.displayName = "TimeDisplay";
|