// @flow import { Button, Classes, InputGroup, Intent } from '@blueprintjs/core'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Flex } from 'reflexbox'; import { GameList } from './GameList'; import { PlayerInfo } from '../PlayerInfo'; import { actions } from '../../redux/games'; type GameBrowserProps = { createGame: (gameName: string) => void, } class GameBrowserPresenter extends Component { _gameName: string | void = undefined; createGame = (e: SyntheticEvent<*>): void => { e.preventDefault(); if (this._gameName !== undefined) { this.props.createGame(this._gameName); } }; render() { return (
) => (this._gameName = e.target.value)} rightElement={} />
); } } const CreateGameButton = ({onClick}) => (