"use client" import { useState, useEffect } from "react" import Link from "next/link" import { useSearchParams } from "next/navigation" import { useBetslipStore } from "@/lib/store/betslip-store" import { mockEvents, popularLeagues, type Event } from "@/lib/mock-data" import { useBettingStore } from "@/lib/store/betting-store" import type { AppEvent } from "@/lib/store/betting-types" import { SPORT_SLUG_TO_ID, getMarketsForTab, type ApiOdds, type MarketTabKey } from "@/lib/store/betting-api" import { cn } from "@/lib/utils" import { ChevronDown, BarChart2, TrendingUp, Plus, Loader2 } from "lucide-react" function OddsButton({ odds, onClick, isSelected }: { odds: number onClick: () => void isSelected: boolean }) { return ( ) } function EventRow({ event }: { event: Event | AppEvent }) { const { bets, addBet } = useBetslipStore() return (
Loading events and odds…
{/*Resolving odds for each event
*/}{error}
Check NEXT_PUBLIC_BETTING_API_BASE_URL and tenant.