fosrl.pangolin/src/app/[orgId]/layout.tsx

50 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-10-13 22:24:02 -04:00
import { Metadata } from "next";
import { TopbarNav } from "./components/TopbarNav";
import { LayoutGrid, Tent } from "lucide-react";
import Header from "./components/Header";
2024-10-13 18:33:41 -04:00
export const metadata: Metadata = {
2024-10-13 22:24:02 -04:00
title: "Configuration",
description: "",
};
2024-10-13 18:33:41 -04:00
2024-10-13 22:24:02 -04:00
const topNavItems = [
2024-10-13 18:33:41 -04:00
{
title: "Sites",
href: "/configuration/sites",
2024-10-13 22:24:02 -04:00
icon: <Tent />,
2024-10-13 18:33:41 -04:00
},
{
title: "Resources",
href: "/configuration/resources",
2024-10-13 22:24:02 -04:00
icon: <LayoutGrid />,
2024-10-13 18:33:41 -04:00
},
2024-10-13 22:24:02 -04:00
];
2024-10-13 18:33:41 -04:00
2024-10-13 22:24:02 -04:00
interface ConfigurationLaytoutProps {
children: React.ReactNode;
params: { siteId: string };
2024-10-13 18:33:41 -04:00
}
2024-10-13 22:24:02 -04:00
export default async function ConfigurationLaytout({
children,
params,
}: ConfigurationLaytoutProps) {
2024-10-13 18:33:41 -04:00
return (
<>
2024-10-13 22:24:02 -04:00
<div className="w-full bg-stone-200 border-b border-stone-300 mb-5 select-none px-3">
<div className="container mx-auto flex flex-col content-between gap-3 pt-2">
<Header
email="mschwartz10612@gmail.com"
orgName="Home Lab 1"
name="Milo Schwartz"
/>
<TopbarNav items={topNavItems} />
2024-10-13 18:33:41 -04:00
</div>
</div>
2024-10-13 22:24:02 -04:00
<div className="container mx-auto px-3">{children}</div>
2024-10-13 18:33:41 -04:00
</>
2024-10-13 22:24:02 -04:00
);
2024-10-13 18:33:41 -04:00
}