"use client"; import { useState, useEffect, useRef } from "react"; import { useRouter } from "next/navigation"; import { useSession } from "next-auth/react"; import { formatElapsedTime, getHuntTimer, syncTimerWithServer, } from "@/utils/timerService"; import Link from "next/link"; import dynamic from "next/dynamic"; import { use } from "react"; // Add missing import for NavBar component import NavBar from "@/components/NavBar"; // Dynamically import the QR scanner component with no SSR const EnhancedQRScanner = dynamic( () => import("@/components/EnhancedQRScanner"), { ssr: false, loading: () =>
Loading clue...
The treasure hunt has concluded. Redirecting to results page...
Great work! You've found this clue.
You need to find this clue first before moving to the next one.
{clue?.description}
{clue?.location && ({clue.location}