import React from 'react'; import { useScore, ACTIONS } from '../context/ScoreContext'; import { useNavigate } from 'react-router-dom'; import { Button, Typography, Box, Grid } from '@mui/material'; const GameSummary = () => { const { state, dispatch } = useScore(); const navigate = useNavigate(); const handleReturnToMenu = () => { dispatch({ type: ACTIONS.RESET_GAME }); navigate('/'); }; return ( Game Summary {/* Your existing summary content here */} ); }; export default GameSummary;