import {FunctionComponent} from "react"; import {Connection} from "../../pages/Room"; import {Button} from "../../components/Button"; interface Props { winner: string | undefined; handleLobbyAction: (action: string) => void; playerList: Connection[]; onKickClick: (playerId: string) => void; } const Lobby: FunctionComponent = ({winner, handleLobbyAction, playerList, onKickClick}) => { const onStartClick = () => { console.log('Start Game'); handleLobbyAction("START"); } return (

Waiting for host to start the game

Players

    { playerList.map((player) => { return
  1. {player.Name}

  2. }) }

Game Settings

Not available... yet?
); } export default Lobby;