import { useGame } from "../../context/GameContext.js"; export const OfflineModal = (): React.JSX.Element | null => { const { offlineGold, dismissOfflineGold } = useGame(); if (offlineGold <= 0) return null; return (

Welcome back!

Your adventurers kept working whilst you were away and earned{" "} 🪙 {offlineGold.toFixed(0)} gold!

Offline progress is calculated up to 8 hours.

); };