import { useParams } from 'react-router-dom'; import { useScoreboardSync } from '../hooks/useScoreboardSync'; import { Workspace } from '../components/Workspace'; /** Public co-scorekeeping page. No login — access is via the unguessable control token. */ export function Control() { const { token = '' } = useParams(); const { state, sendUpdate, connected } = useScoreboardSync(`control=${token}`, 'editor'); return (

Scorekeeper

Shared control — your changes go live instantly.

{state ? ( ) : (

Connecting…

)}
); }