mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
|
|
import { getOrgFromDomain } from "@/data/org";
|
||
|
|
import { OrganizationAccessSettings } from "@/app/components/organizationAccessSettings";
|
||
|
|
|
||
|
|
interface AccessPageProps {
|
||
|
|
params: {
|
||
|
|
domain: string;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default async function AccessPage({ params: { domain } }: AccessPageProps) {
|
||
|
|
const org = await getOrgFromDomain(domain);
|
||
|
|
if (!org) {
|
||
|
|
throw new Error("Organization not found");
|
||
|
|
}
|
||
|
|
|
||
|
|
return (
|
||
|
|
<div className="flex flex-col gap-6">
|
||
|
|
<div>
|
||
|
|
<h3 className="text-lg font-medium">Access Control</h3>
|
||
|
|
<p className="text-sm text-muted-foreground">Configure how users can access your Sourcebot deployment.{" "}
|
||
|
|
<a
|
||
|
|
href="https://docs.sourcebot.dev/docs/configuration/auth/access-settings"
|
||
|
|
target="_blank"
|
||
|
|
rel="noopener"
|
||
|
|
className="underline text-primary hover:text-primary/80 transition-colors"
|
||
|
|
>
|
||
|
|
Learn more
|
||
|
|
</a>
|
||
|
|
</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<OrganizationAccessSettings />
|
||
|
|
</div>
|
||
|
|
)
|
||
|
|
}
|