"use client" import { useEffect } from "react" import Link from "next/link" import { useBetslipStore } from "@/lib/store/betslip-store" import { useLiveStore } from "@/lib/store/live-store" import { SportEnum } from "@/lib/store/betting-types" import { SPORT_ID_MAP } from "@/lib/store/betting-api" import type { AppEvent } from "@/lib/store/betting-types" import { cn } from "@/lib/utils" import { BarChart2, Monitor, Loader2 } from "lucide-react" function LiveEventRow({ event, isNoOdds }: { event: AppEvent; isNoOdds?: boolean }) { const { addBet } = useBetslipStore() const score = event.score ?? "0 - 0" const time = event.matchMinute != null ? `${String(event.matchMinute).padStart(2, "0")}:00` : "—" const period = "H2" return (