import { BenchmarkResult } from "@/types/benchmark"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { Badge } from "@/components/ui/badge"; import { CheckCircle2, XCircle } from "lucide-react"; interface BenchmarkTableProps { results: BenchmarkResult[]; } export const BenchmarkTable = ({ results }: BenchmarkTableProps) => { // Sort by response time (fastest first) const sortedResults = [...results].sort((a, b) => { if (a.status === "error" && b.status === "success") return 1; if (a.status === "success" && b.status === "error") return -1; return a.responseTime - b.responseTime; }); return (