import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { api } from "@/server/api/client"; import AddApiKey from "./AddApiKey"; import DeleteApiKey from "./DeleteApiKey"; export default async function ApiKeys() { const keys = await api.apiKeys.list(); return (
API Keys
Name Key Created At Action {keys.keys.map((k) => ( {k.name} **_{k.keyId}_** {k.createdAt.toLocaleString()} ))}
); }