2025-02-12 22:55:35 +00:00
|
|
|
import { Metadata } from "next"
|
|
|
|
|
import { Separator } from "@/components/ui/separator"
|
|
|
|
|
import { SidebarNav } from "./components/sidebar-nav"
|
|
|
|
|
import { NavigationMenu } from "../components/navigationMenu"
|
|
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: "Settings",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function SettingsLayout({
|
2025-01-23 18:26:41 +00:00
|
|
|
children,
|
2025-02-12 21:05:44 +00:00
|
|
|
params: { domain },
|
2025-01-23 18:26:41 +00:00
|
|
|
}: Readonly<{
|
|
|
|
|
children: React.ReactNode;
|
2025-02-12 21:05:44 +00:00
|
|
|
params: { domain: string };
|
2025-01-23 18:26:41 +00:00
|
|
|
}>) {
|
2025-02-12 22:55:35 +00:00
|
|
|
const sidebarNavItems = [
|
|
|
|
|
{
|
|
|
|
|
title: "Members",
|
|
|
|
|
href: `/${domain}/settings`,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Billing",
|
|
|
|
|
href: `/${domain}/settings/billing`,
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
2025-01-23 18:26:41 +00:00
|
|
|
return (
|
2025-02-13 18:15:06 +00:00
|
|
|
<div>
|
2025-02-12 21:05:44 +00:00
|
|
|
<NavigationMenu domain={domain} />
|
2025-02-12 22:55:35 +00:00
|
|
|
<div className="hidden space-y-6 p-10 pb-16 md:block">
|
|
|
|
|
<div className="space-y-0.5">
|
|
|
|
|
<h2 className="text-2xl font-bold tracking-tight">Settings</h2>
|
|
|
|
|
<p className="text-muted-foreground">
|
|
|
|
|
Manage your organization settings.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<Separator className="my-6" />
|
2025-02-13 18:15:06 +00:00
|
|
|
<div className="flex flex-col space-y-8 lg:flex-row lg:space-x-8 lg:space-y-0">
|
|
|
|
|
<aside className="-mx-4 lg:w-48">
|
2025-02-12 22:55:35 +00:00
|
|
|
<SidebarNav items={sidebarNavItems} />
|
|
|
|
|
</aside>
|
2025-02-13 18:15:06 +00:00
|
|
|
<div className="flex-1">{children}</div>
|
2025-02-12 22:55:35 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-02-13 18:15:06 +00:00
|
|
|
</div>
|
2025-01-23 18:26:41 +00:00
|
|
|
)
|
|
|
|
|
}
|