Files
wikideck/src/game/useAccount.ts
T
claudeandClaude Opus 5.5 b6dcd74cc3 Play section: lobby, deck builder, match, results, tutorial
Mobile-first game UI in src/game/, built against a UI-side EngineAdapter.
A temporary mock 3-lane engine (src/game/mock/) stands in until
shared/game lands. Tap a card, then tap a lane; bottom thumb dock; bottom
sheets instead of hover; full-screen match on phones. Lobby lists local
and peer modes (GET /api/game/modes, parsed defensively) and shows the
eom.dev login state through a stub hook for the SSO team.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:16:18 -05:00

7 lines
424 B
TypeScript

// eom.dev login state. The SSO team (#7) owns the real OIDC client; until it lands this reports
// signed-out and the lobby shows a disabled "Sign in" chip. Swap this hook's body for theirs.
export type Account = { name: string; avatar?: string } | null;
export function useAccount(): { account: Account; available: boolean; login?: () => void; logout?: () => void } {
return { account: null, available: false };
}