source: components/poker/PokerSections.jsx@ b13f93b

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

Made poker tables system and round 1

  • Property mode set to 100644
File size: 768 bytes
Line 
1import React from 'react'
2
3import Cards from './sections/Cards'
4import CardsInTheMiddle from './sections/CardsInTheMiddle'
5import Chairs from './sections/Chairs'
6import Messages from './sections/Messages'
7import PlayButtons from './sections/PlayButtons'
8import PickATable from './sections/PickATable'
9
10import { useSelector, useDispatch } from 'react-redux'
11
12const PokerSections = () => {
13 const playerState = useSelector(state => state.player);
14
15 if (playerState.pokerGame.player.table.length > 0) {
16 return (
17 <>
18 <Messages/>
19
20 <Chairs/>
21
22 <Cards/>
23
24 <CardsInTheMiddle/>
25
26 <PlayButtons/>
27 </>
28 )
29 }
30 else {
31 return (
32 <>
33 <PickATable/>
34 </>
35 )
36 }
37}
38
39export default PokerSections
Note: See TracBrowser for help on using the repository browser.