// @flow
import { Button, Classes, InputGroup, Intent } from '@blueprintjs/core';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container } from 'rebass';
import { actions } from '../../redux/players';
import { HomeLayout } from './components/HomeLayout';
class SplashScreenPresenter extends Component {
_username = '';
play = e => {
e.preventDefault();
if (this._username !== undefined) {
this.props.chooseUsername(this._username);
}
};
render() {
return (
);
}
renderSubmit = () => (
);
}
const mapDispatchToProps = {
chooseUsername: actions.chooseUsername,
};
export const SplashScreen = connect(null, mapDispatchToProps)(SplashScreenPresenter);