import React from "react"; import {Row} from "antd"; import {useRoomRunningAndReadyChanged} from "../lib/Connection"; import NextShot from "./NextShot"; import Feed from "./Feed"; import ShotsTaken from "./ShotsTaken"; import Lobby from "./Lobby"; import logo from "../img/via-logo.svg"; import haramlogo from "../img/harambee_logo.png"; import Player from "./Player"; const Centurion = () => { const room = useRoomRunningAndReadyChanged(); const showFeed = (room?.running && room.readyToParticipate) || false; const feedContent = ( ); const lobbyContent = ( ); return ( <>
{showFeed ? feedContent : lobbyContent}
); }; export default Centurion;