import { AdminKeyRowActions } from "./admin-key-row-actions"; /** * Admin table: username, full key, status, created date. The full raw key is * shown here intentionally (admin-only, gated route). The delete handle * (`openrouter_delete_hash`) is never rendered. * * @param {{ rows: import('@/lib/keys/api-keys-repository').ApiKeyRow[] }} props */ export function AdminKeysTable({ rows }) { if (!rows.length) { return (
No keys match.
| Username | Key | Status | Created | |
|---|---|---|---|---|
| @{row.github_username} |
{row.openrouter_key ?? "—"}
|
{row.status} | {new Date(row.created_at).toISOString().slice(0, 10)} |
|