import React from 'react'; import PropTypes from 'prop-types'; import styles from './game-loading-overlay.css'; const GameLoadingOverlay = ({ visible, progress }) => { const pct = Math.max(0, Math.min(100, Math.round(Number(progress) || 0))); return (