"use client"; import { Zap, Users, Timer, TrendingUp, Eye } from "lucide-react"; import { Card, CardHeader, CardTitle } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { Table, TableBody, TableHead, TableHeader, TableRow, TableCell, } from "@/components/ui/table"; import LiveRunRow from "./components/LiveRunRow"; import useAction from "@/hook/use-action"; import { getLiveRuns } from "@/modules/live-run/actions"; import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group"; export default function LiveRuns() { const [liveRuns, liveRunsLoaded, liveRunsError] = useAction(getLiveRuns); // Sort top runners (status === 'pb') to the top const sortedRuns = [...(liveRuns || [])]; return (
{/* Header */}

Live Runs

42 live runs ยท Streaming in real time

{/* Filters */}
any% 100%
{/* Table */} Runner Problem Time Views Status {sortedRuns.map((run, index) => ( ))}
); }