"use client"; import { Eye } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { TableRow, TableCell } from "@/components/ui/table"; import { cn } from "@/lib/utils"; import { LiveRun } from "@/modules/live-run/types"; import formatTime from "@/lib/time-format"; export default function LiveRunRow({ index, run, }: { index: number; run: LiveRun; }) { const now = new Date().getTime() + 1000; const isTop = false; return ( {isTop ? `🔥 ${run.username}` : run.username}
{run.problem} {run.category}
{formatTime(now - run.start, false)} 0
Live
); }