/* @component-map * App — Main container, role selection, room routing [app.jsx] * HostView — Host creates room, manages questions, controls game flow [components/HostView.jsx] * PlayerView — Player joins room, answers questions [components/PlayerView.jsx] * QuestionManager — Host adds/edits questions [components/QuestionManager.jsx] * GamePlay — Live game screen for host (question display, timer, leaderboard) [components/GamePlay.jsx] * PlayerGame — Live game screen for player (answer submission, feedback) [components/PlayerGame.jsx] * Leaderboard — Live leaderboard component [components/Leaderboard.jsx] * @end-component-map */ import { useState } from 'react'; import { useIdentity } from '@deplixo/sdk'; import { HostView } from './components/HostView.jsx'; import { PlayerView } from './components/PlayerView.jsx'; // PROGRESS:sc_001:complete:Setting up the trivia game shell function App() { const { user, loading } = useIdentity(); const [role, setRole] = useState(null); if (loading) { return (
Loading Trivia Party...
The sweetest trivia game around!
Hey, {user.name}!