import React from 'react' import { useSelector, useDispatch } from 'react-redux' import { setStyle } from '../redux/reducers/styleSlice'; import { AiOutlineClose } from 'react-icons/ai'; const Stats = () => { const styleState = useSelector(state => state.style); const dispatch = useDispatch(); function close() { dispatch(setStyle({ ...styleState.style, displayStatsScreen: false, })) } return (
Total money won: ${styleState.style.statsScreenInfo.money.earned}
Total blackjack games won: {styleState.style.statsScreenInfo.blackjack.wins}
Total roulette games won: {styleState.style.statsScreenInfo.roulette.wins}
Total poker games won: {styleState.style.statsScreenInfo.poker.wins}