"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
|
{dev.developer}
|
{dev.model_count.toLocaleString()} | {dev.benchmark_count.toLocaleString()} | {dev.evaluation_count.toLocaleString()} |
Open
|