()
| 9 | import { AccessGate } from '@/components/access/AccessGate' |
| 10 | |
| 11 | function AppContent() { |
| 12 | // Establish socket connection once at app startup. |
| 13 | // Individual hooks only subscribe/unsubscribe to rooms. |
| 14 | useEffect(() => { |
| 15 | socketManager.connect() |
| 16 | return () => socketManager.disconnect() |
| 17 | }, []) |
| 18 | |
| 19 | return ( |
| 20 | <I18nProvider> |
| 21 | <GlobalRealtimeSync /> |
| 22 | <AppRouter /> |
| 23 | <Toaster |
| 24 | position="top-center" |
| 25 | toastOptions={{ |
| 26 | className: 'text-sm', |
| 27 | style: { |
| 28 | fontFamily: 'inherit', |
| 29 | }, |
| 30 | classNames: { |
| 31 | error: '!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg', |
| 32 | success: '!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg', |
| 33 | default: '!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg', |
| 34 | }, |
| 35 | }} |
| 36 | /> |
| 37 | </I18nProvider> |
| 38 | ) |
| 39 | } |
| 40 | |
| 41 | function App() { |
| 42 | return ( |
nothing calls this directly
no test coverage detected