import React from "react"; import { usePlayers } from "../hooks"; import { Loading } from "./Loading"; export function Lobby() { const players = usePlayers(); if (!players) { return ; } return (

{players.length > 1 ? "Waiting for other players" : "Game loading"}

Please wait for the game to be ready.

); }