MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / SettingsLayout

Function SettingsLayout

packages/web/src/app/(app)/settings/layout.tsx:23–44  ·  view source on GitHub ↗
(
    props: LayoutProps
)

Source from the content-addressed store, hash-verified

21}
22
23export default async function SettingsLayout(
24 props: LayoutProps
25) {
26 const {
27 children
28 } = props;
29
30 const session = await auth();
31 if (!session) {
32 return redirect('/');
33 }
34
35 return (
36 <div>
37 <main className="flex justify-center p-4">
38 <div className="w-full max-w-3xl rounded-lg p-6">
39 <div className="w-full rounded-lg">{children}</div>
40 </div>
41 </main>
42 </div>
43 )
44}
45
46export const getSidebarNavGroups = async () =>
47 withAuth(async ({ role }) => {

Callers

nothing calls this directly

Calls 1

redirectFunction · 0.85

Tested by

no test coverage detected