Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
import type { Metadata } from "next";
import { CliApiKeys } from "./components/CliApiKeys";
import { Settings } from "./Settings";
import { listCliApiKeys } from "./server";
export const metadata: Metadata = {
title: "Settings — Cap",
};
export default async function SettingsPage() {
// A failed key query must not 500 the whole settings page, but it also must not render as
// an empty list, which would hide still-active keys the user may need to revoke.
const cliApiKeys = await listCliApiKeys().catch(() => null);
return (
<>
<Settings />
<CliApiKeys
initialKeys={cliApiKeys ?? []}
loadFailed={cliApiKeys === null}
/>
</>
);
}