import { maskFromHint } from "@/lib/keys/key-format"; import { AdminKeyRowActions } from "./admin-key-row-actions"; /** * Renders only safe columns: username, masked key hint, status, created date. * The `openrouter_key_hash` is NEVER rendered or serialized to the client. * * @param {{ rows: import('@/lib/keys/api-keys-repository').ApiKeyRow[] }} props */ export function AdminKeysTable({ rows }) { if (!rows.length) { return (

No keys match.

); } return (
{rows.map((row) => ( ))}
Username Key Status Created
@{row.github_username} {maskFromHint(row.key_hint)} {row.status} {new Date(row.created_at).toISOString().slice(0, 10)}
); }