import { getSecrets } from "@/actions"; import { SecretsList } from "./components/secretsList"; import { isServiceError } from "@/lib/utils"; import { ImportSecretCard } from "./components/importSecretCard"; import { ServiceErrorException } from "@/lib/serviceError"; interface SecretsPageProps { params: Promise<{ domain: string; }> } export default async function SecretsPage(props: SecretsPageProps) { const params = await props.params; const { domain } = params; const secrets = await getSecrets(domain); if (isServiceError(secrets)) { throw new ServiceErrorException(secrets); } return (

Manage Secrets

These secrets grant Sourcebot access to private code.

) }