source: components/poker/PokerSections.jsx@ 55701f0

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

Added complaints, managing credits, and lost connection screens

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