All files / web/src/app/arcade/know-your-world page.tsx

0% Statements 0/27
0% Branches 0/1
0% Functions 0/1
0% Lines 0/27

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28                                                       
'use client'

import dynamicImport from 'next/dynamic'

// Opt-out of static generation due to ES module dependencies in map data
export const dynamic = 'force-dynamic'

// Dynamically import the game with SSR disabled to avoid ES module loading issues during build
const KnowYourWorldGame = dynamicImport(
  async () => {
    const { knowYourWorldGame } = await import('@/arcade-games/know-your-world')
    const { Provider, GameComponent } = knowYourWorldGame

    return function Game() {
      return (
        <Provider>
          <GameComponent />
        </Provider>
      )
    }
  },
  { ssr: false, loading: () => <div>Loading...</div> }
)

export default function KnowYourWorldPage() {
  return <KnowYourWorldGame />
}