import type { Metadata } from "next"; import type { GameCard, PublicUser, UserSettings, WalletView } from "@spinza/shared"; import { apiServer } from "@/lib/api-server"; import { AppShell } from "@/components/shell/app-shell"; import { Landing } from "@/components/lobby/landing"; import { Lobby } from "@/components/lobby/lobby"; export const metadata: Metadata = { title: "Spinza — The Virtual Casino Playground", description: "Twenty original casino-style games played with free fictional credits. No deposits. No withdrawals. No cash value. 18+.", alternates: { canonical: "/" }, }; interface GamesResponse { games: GameCard[]; livePlayers: number; recommendations: string[]; } export default async function HomePage() { const [session, lobby] = await Promise.all([apiServer<{ user: PublicUser; wallet: WalletView; settings: UserSettings }>("/api/user"), apiServer("/api/games")]); if (!session) { return ( <>