"use client" import Link from "next/link" import { ArrowUpRight, ChevronDown, ChevronUp, ChevronsUpDown } from "lucide-react" import type { DeveloperListItem } from "@/lib/dashboard-data-client" import { cn, routeIdToPath } from "@/lib/utils" export type DeveloperTableSortCol = | "name" | "models" | "benchmarks" | "results" interface DeveloperTableProps { rows: DeveloperListItem[] sortCol: DeveloperTableSortCol sortDir: "asc" | "desc" onSort: (col: DeveloperTableSortCol) => void } export function DeveloperTable({ rows, sortCol, sortDir, onSort }: DeveloperTableProps) { function SortIcon({ col }: { col: DeveloperTableSortCol }) { if (sortCol !== col) return return sortDir === "asc" ? : } function SortTh({ col, children, className, style, }: { col: DeveloperTableSortCol children: React.ReactNode className?: string style?: React.CSSProperties }) { const active = sortCol === col return ( onSort(col)} > {children} ) } return (
DeveloperModelsBenchmarksReported results {rows.map((dev) => { return ( ) })}
{dev.developer}
{dev.model_count.toLocaleString()} {dev.benchmark_count.toLocaleString()} {dev.evaluation_count.toLocaleString()} Open
) }