import React from 'react'; import { Game } from '../../types'; import { useGameStateContext } from '../../context/GameStateContext'; const HistoryScreen: React.FC = () => { const { gameState, setCurrentScreen } = useGameStateContext(); const renderHistory = () => { if (!gameState.gameHistory || gameState.gameHistory.length === 0) { return