import { Button, Classes, Intent, NonIdealState } from '@blueprintjs/core'; import { List } from 'immutable'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import type { ApiPlayer, ApiPlayerMove, ApiPlayerTurnInfo } from '../../api/model'; import type { GlobalState } from '../../reducers'; import { actions } from '../../redux/actions/game'; import { getCurrentTurnInfo } from '../../redux/currentGame'; import { getCurrentGame } from '../../redux/games'; import { Board } from './Board'; import './GameScene.css' import { Hand } from './Hand'; import { ProductionBar } from './ProductionBar'; type GameSceneProps = { players: List, turnInfo: ApiPlayerTurnInfo, sayReady: () => void, prepareMove: (move: ApiPlayerMove) => void, } class GameScenePresenter extends Component { render() { return (
{!this.props.turnInfo && } {this.props.turnInfo && this.turnInfoScene()}
); } turnInfoScene() { let turnInfo = this.props.turnInfo; let board = turnInfo.table.boards[turnInfo.playerIndex]; return

{turnInfo.message}

} } const GamePreStart = ({onReadyClicked}) => Click "ready" when you are

} action={