// src/components/GameSetup.js import React from 'react'; import { Button, Card, CardContent, CardHeader, Grid, Typography } from '@mui/material'; import { useScore, ACTIONS } from '../context/ScoreContext'; const GameSetup = ({ onGameStart }) => { const { dispatch } = useScore(); const startGame = (gameType) => { dispatch({ type: ACTIONS.START_NEW_ROUND, payload: { gameType } }); onGameStart(); }; return ( Select your game type: ); }; export default GameSetup;