source: components/roulette/Ball.jsx@ aac3b2b

main
Last change on this file since aac3b2b was 3a783f2, checked in by anastasovv <simon@…>, 2 years ago

Finished poker and added ball to roulette

  • Property mode set to 100644
File size: 519 bytes
Line 
1import React from 'react'
2
3import { useSelector } from 'react-redux'
4
5const Ball = () => {
6 const playerState = useSelector(state => state.player);
7 const styleState = useSelector(state => state.style);
8
9 return (
10 <>
11 { (playerState.rouletteGame.timeToStart > styleState.roulette.COUNTDOWN_FROM || playerState.rouletteGame.timeToStart <= 0) &&
12 <img id="rouletteBall" src="/images/roulette-ball.png" alt="Roulette ball"/>
13 }
14 </>
15 )
16}
17
18export default Ball
Note: See TracBrowser for help on using the repository browser.