diff --git a/App.tsx b/App.tsx index bf7a69f..503e242 100644 --- a/App.tsx +++ b/App.tsx @@ -1,6 +1,8 @@ import React, { useState } from 'react'; import { useAuth } from 'react-oidc-context'; import { useLocation, useNavigate } from 'react-router-dom'; +import { motion } from 'framer-motion'; +import { RefreshCw, LogOut } from 'lucide-react'; import { useGame } from './hooks/useGame'; import { useQuizLibrary } from './hooks/useQuizLibrary'; import { useUserConfig } from './hooks/useUserConfig'; @@ -328,13 +330,48 @@ function App() { ) : null} {gameState === 'DISCONNECTED' && currentPlayerName && gamePin ? ( - + role === 'HOST' ? ( + // Host disconnected - show reconnecting state or allow ending game +
+ + + + + +

Reconnecting...

+ +

+ Restoring your game session for {gamePin} +

+ + + + Cancel & End Game + +
+
+ ) : ( + + ) ) : null} {gameState === 'WAITING_TO_REJOIN' && currentPlayerName ? (