"use client" import { useBetslipStore } from "@/lib/store/betslip-store" import { mockEvents, type Event } from "@/lib/mock-data" import { cn } from "@/lib/utils" import { BarChart2, TrendingUp, Monitor, Tv } from "lucide-react" function LiveEventRow({ event, isNoOdds }: { event: Event, isNoOdds?: boolean }) { const { bets, addBet } = useBetslipStore() // Dummy data for demonstration const score = event.homeScore !== undefined ? `${event.homeScore} - ${event.awayScore}` : "0 - 0" const time = event.liveMinute ? `${event.liveMinute}:00` : "83:10" const period = "H2" return (
{/* Match Info Column (Time & Score) */}
{time} {period}
{event.homeTeam} {score} {event.awayTeam}
{/* Odds Grid or Placeholder */}
{isNoOdds ? (
Sorry, no odds for this match
) : (
{event.markets.slice(0, 3).map((m, idx) => { const labels = ["Home", "Draw", "Away"] return ( ) })}
)}
{/* Right Indicator */}
) } const liveSports = [ { id: "soccer", label: "Soccer", icon: "⚽", count: 25, active: true }, { id: "basketball", label: "Basketball", icon: "🏀", count: 39 }, { id: "ice-hockey", label: "Ice Hockey", icon: "🏒", count: 3 }, { id: "tennis", label: "Tennis", icon: "🎾", count: 4 }, { id: "handball", label: "Handball", icon: "🤾", count: 10 }, { id: "rugby", label: "Rugby", icon: "🏉", count: 2 }, { id: "table-tennis", label: "Table Tennis", icon: "🏓", count: 8 }, { id: "volleyball", label: "Volleyball", icon: "🏐", count: 7 }, { id: "futsal", label: "Futsal", icon: "⚽", count: 2 }, { id: "esport-counter-strike", label: "ESport Cou...", icon: "🎮", count: 2 }, { id: "esport-league-of-legends", label: "ESport Lea...", icon: "🎮", count: 1 }, { id: "esport-dota-2", label: "ESport Dota", icon: "🎮", count: 1 }, { id: "efootball", label: "eFootball", icon: "⚽", count: 4 }, { id: "ebasketball", label: "eBasketball", icon: "🏀", count: 1 }, ] export function LiveEventsList() { // Enhanced mock data local to live view to match screenshot exactly const liveMatches = [ { league: "Algeria - Ligue 1", flag: "https://flagcdn.com/w20/dz.png", matches: [ { ...mockEvents[0], id: "l1", homeTeam: "Paradou AC", awayTeam: "Ben Aknoun", homeScore: 3, awayScore: 5, liveMinute: 91, noOdds: true } ] }, { league: "Australia - U23 Victoria NPL", flag: "https://flagcdn.com/w20/au.png", matches: [ { ...mockEvents[1], id: "l2", homeTeam: "Oakleigh Cannons FC", awayTeam: "Altona Magic SC", homeScore: 5, awayScore: 1, liveMinute: 87, noOdds: true } ] }, { league: "Australia - U23 Victoria Premier League 1", flag: "https://flagcdn.com/w20/au.png", matches: [ { ...mockEvents[2], id: "l3", homeTeam: "Northcote City FC", awayTeam: "Western United FC", homeScore: 4, awayScore: 0, liveMinute: 83, noOdds: false }, { ...mockEvents[3], id: "l4", homeTeam: "Melbourne Knights FC", awayTeam: "Melbourne Victory FC", homeScore: 0, awayScore: 3, liveMinute: 81, noOdds: true } ] }, { league: "Australia - Victoria NPL, Women", flag: "https://flagcdn.com/w20/au.png", matches: [ { ...mockEvents[4], id: "l5", homeTeam: "Preston Lions FC", awayTeam: "South Melbourne FC", homeScore: 1, awayScore: 1, liveMinute: 52, noOdds: true }, { ...mockEvents[0], id: "l6", homeTeam: "Bentleigh Greens SC", awayTeam: "Box Hill United", homeScore: 0, awayScore: 6, liveMinute: 83, noOdds: true } ] } ] return (
{/* Sport Navigation Carousel */}
{/* Favourites & Prematch */} {/* Live Sports */} {liveSports.map((sport) => ( ))}
{/* Category Header (Soccer) */}

Soccer

{/* Grouped Live Matches */}
{liveMatches.map((group, gIdx) => (
{/* League Header */}
{group.league} {group.league}
{/* Matches in this league */}
{group.matches.map((match, mIdx) => ( ))}
))}
) }