diff --git a/apps/web/src/app/arcade/matching/context/index.ts b/apps/web/src/app/arcade/matching/context/index.ts new file mode 100644 index 00000000..7091152c --- /dev/null +++ b/apps/web/src/app/arcade/matching/context/index.ts @@ -0,0 +1,20 @@ +/** + * Central export point for arcade matching game context + * Re-exports the hook from the appropriate provider + */ + +// Export the hook (works with both local and room providers) +export { useMemoryPairs } from './MemoryPairsContext' + +// Export the room provider (networked multiplayer) +export { RoomMemoryPairsProvider } from './RoomMemoryPairsProvider' + +// Export types +export type { + GameCard, + GameMode, + GamePhase, + GameType, + MemoryPairsState, + MemoryPairsContextValue, +} from './types' diff --git a/apps/web/src/app/arcade/room/page.tsx b/apps/web/src/app/arcade/room/page.tsx index d4da74cc..25633274 100644 --- a/apps/web/src/app/arcade/room/page.tsx +++ b/apps/web/src/app/arcade/room/page.tsx @@ -2,7 +2,7 @@ import { useRoomData } from '@/hooks/useRoomData' import { MemoryPairsGame } from '../matching/components/MemoryPairsGame' -import { ArcadeMemoryPairsProvider } from '../matching/context/ArcadeMemoryPairsContext' +import { RoomMemoryPairsProvider } from '../matching/context/RoomMemoryPairsProvider' /** * /arcade/room - Renders the game for the user's current room @@ -68,9 +68,9 @@ export default function RoomPage() { switch (roomData.gameName) { case 'matching': return ( - + - + ) // TODO: Add other games (complement-race, memory-quiz, etc.)