import React from 'react' import assertNever from '~/common/assertNever.ts' import IntroPage from '../components/IntroPage.tsx' import Page from '../components/Page.tsx' import GameClient from '../game/GameClient.tsx' type MenuState = 'menu' | 'play' export default function AppPage() { const [menuState, setMenuState] = React.useState('menu') switch (menuState) { case 'menu': { return ( ) } case 'play': { return ( ) } default: return assertNever(menuState) } }