/**
* React Subcomponent for displaying a location's UI, when that location is a gym
*
* This subcomponent renders all of the buttons for training at the gym
*/
import React, { useState } from "react";
import Button from "@mui/material/Button";
import { Blackjack, DECK_COUNT } from "../../Casino/Blackjack";
import { CoinFlip } from "../../Casino/CoinFlip";
import { Roulette } from "../../Casino/Roulette";
import { SlotMachine } from "../../Casino/SlotMachine";
import { IPlayer } from "../../PersonObjects/IPlayer";
import { Box } from "@mui/material";
enum GameType {
None = "none",
Coin = "coin",
Slots = "slots",
Roulette = "roulette",
Blackjack = "blackjack",
}
type IProps = {
p: IPlayer;
};
export function CasinoLocation(props: IProps): React.ReactElement {
const [game, setGame] = useState(GameType.None);
function updateGame(game: GameType): void {
setGame(game);
}
return (
<>
{game === GameType.None && (
)}
{game !== GameType.None && (
<>
{game === GameType.Coin && }
{game === GameType.Slots && }
{game === GameType.Roulette && }
{game === GameType.Blackjack && }
>
)}
>
);
}