import React from 'react' import { useSelector, useDispatch } from 'react-redux' import { setStyle } from '../redux/reducers/styleSlice'; import FreeflowCard from './FreeflowCard'; import Calculations from './admin/Calculations'; const GamesHistory = () => { const dispatch = useDispatch(); const styleState = useSelector(state => state.style); function hideGamesHistoryScreen() { dispatch(setStyle({ ...styleState.style, displayGamesHistoryScreen: false, })) } if (styleState.style.displayGamesHistoryScreen) { return (
hideGamesHistoryScreen()}>⬅ Go Back
Player {room.displayName} (${parseInt(room.initialBet) + parseInt(room.sideBet)})
Dealer {room.dealerName}