"use client" import { useState } from "react" export function CheckYourBet() { const [betId, setBetId] = useState("") const [result, setResult] = useState(null) const handleCheck = () => { if (!betId.trim()) return // Mock result const results = ["pending", "won", "lost"] as const setResult(results[Math.floor(Math.random() * results.length)]) } return (

Check Your Bet

Your bet ID

setBetId(e.target.value)} className="flex-1 bg-brand-bg border border-border/40 px-2 py-2 text-[11px] text-white outline-none focus:border-brand-primary" onKeyDown={(e) => e.key === "Enter" && handleCheck()} />
{result && (
{result === "won" && "🎉 Bet Won!"} {result === "lost" && "❌ Bet Lost"} {result === "pending" && "⏳ Bet Pending"}
)}
) }