mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-15 22:05:23 +00:00
19 lines
553 B
TypeScript
19 lines
553 B
TypeScript
|
|
import { NavigationMenu } from "../components/navigationMenu";
|
||
|
|
|
||
|
|
export default function Layout({
|
||
|
|
children,
|
||
|
|
params: { domain },
|
||
|
|
}: Readonly<{
|
||
|
|
children: React.ReactNode;
|
||
|
|
params: { domain: string };
|
||
|
|
}>) {
|
||
|
|
|
||
|
|
return (
|
||
|
|
<div className="min-h-screen flex flex-col">
|
||
|
|
<NavigationMenu domain={domain} />
|
||
|
|
<main className="flex-grow flex justify-center p-4 bg-backgroundSecondary relative">
|
||
|
|
<div className="w-full max-w-6xl rounded-lg p-6">{children}</div>
|
||
|
|
</main>
|
||
|
|
</div>
|
||
|
|
)
|
||
|
|
}
|