import { CreateLobbyEvent, handleCreateLobby, handleJoinLobby, JoinLobbyEvent, } from "interface"; import React, { ChangeEvent } from "react"; import { Socket } from "socket.io-client"; export interface LandingPageProps { socket: Socket; } const LandingPage = (props: LandingPageProps) => { const { socket } = props; const createLobbyPayload: CreateLobbyEvent = { userName: "" }; const joinLobbyPayload: JoinLobbyEvent = { userName: "", lobbyId: "" }; const registerUsername = (event: ChangeEvent) => { createLobbyPayload.userName = event.target.value; joinLobbyPayload.userName = event.target.value; }; const registerLobbyId = (event: ChangeEvent) => (joinLobbyPayload.lobbyId = event.target.value); return (

Trains And Roads

); }; export default LandingPage;