fix: toggle pause button text and color based on game state

This commit is contained in:
2026-04-07 22:01:01 +07:00
parent 2c831040f0
commit 80327622df
+2 -2
View File
@@ -65,14 +65,14 @@ export function HUD({ stateManager, onPause }: HUDProps) {
onClick={onPause}
style={{
padding: "6px 16px",
background: "#0f3460",
background: state.status === "paused" ? "#e94560" : "#0f3460",
color: "#fff",
border: "none",
borderRadius: "4px",
cursor: "pointer",
}}
>
Pause
{state.status === "paused" ? "▶ Resume" : "⏸ Pause"}
</button>
</div>
);