import { GameState } from './App';
import './Game.css';
import base_filled from './img/base_filled.png';
import base_empty from './img/base_empty.png';
import out_filled from './img/out_out.png';
import out_empty from './img/out_in.png';
function Game(props: {gameId: string, state : GameState}) {
let state = props.state;
return (
Inning: {state.display_top_of_inning ? "🔼" : "🔽"} {state.display_inning}/{state.max_innings}
{state.title}
{state.weather_emoji} {state.weather_text}
OUTS
{[1, 2].map((out) => )}
PITCHER
{state.pitcher}
BATTER
{state.batter}
{state.update_emoji}
{state.update_text}
{state.display_top_of_inning ? state.away_name : state.home_name} batting.
{state.leagueoruser} (
share)
);
}
function Team(props: {name: string, score: number}) {
return (
{ props.name }
{ props.score }
);
}
function Base(props: {name: string | null}) {
return (
);
}
function Out(props: {thisOut: number, totalOuts: number}) {
return
;
}
export default Game;