import { Suspense } from "react"
import { COUNTRIES, countryTheme } from "@/lib/countries"
import { getArmyFeed } from "@/lib/lokilab-feed"
import { getCurrentMember } from "@/lib/member-auth"
import { listFollowedPicks } from "@/lib/follows"
import { CountryNav, CountryNavMobile } from "@/components/country-nav"
import { LotteryResultsPanel } from "@/components/lottery-results-panel"
import { AppHeader } from "@/components/app-header"
import { Skeleton } from "@/components/ui/skeleton"
export const instant = false
export default async function Home({
searchParams,
}: {
searchParams: Promise<{ country?: string }>
}) {
const sp = await searchParams
const activeCode = sp.country && COUNTRIES.some((c) => c.code === sp.country) ? sp.country : "CA-QC"
return (
{lotteries.length} loterie{lotteries.length === 1 ? "" : "s"} suivie {lotteries.length === 1 ? "" : "s"}
Données fournies par LokiLab. Statistiques descriptives seulement — aucune garantie de gain.