import { APIKeyList } from "@/components/APIKeyList"; import { getAPIKeys } from "@/server/curdApiKeys"; import { auth } from "@clerk/nextjs"; export default function Page() { return ; } async function Component() { const { userId } = await auth(); if (!userId) { return
No auth
; } const workflow = await getAPIKeys(); return (
{ return { id: x.id, name: x.name, date: x.updated_at, endpoint: `****${x.key.slice(-4)}`, }; })} />
); }