ProxMenux/web/app/docs/layout.tsx

19 lines
488 B
TypeScript
Raw Normal View History

2025-02-18 11:50:54 +01:00
import type { ReactNode } from "react"
2025-02-18 11:53:41 +01:00
import DocSidebar from "@/components/DocSidebar"
2025-02-13 17:28:49 +01:00
2025-02-18 11:50:54 +01:00
interface LayoutProps {
children: ReactNode
}
export default function DocsLayout({ children }: LayoutProps) {
2025-02-13 17:28:49 +01:00
return (
2025-02-18 11:50:54 +01:00
<div className="flex flex-col lg:flex-row min-h-screen bg-white">
<DocSidebar />
<main className="flex-1 p-4 lg:p-8 pt-24 lg:pt-8 overflow-y-auto">
<div className="max-w-3xl mx-auto lg:mx-0 lg:mr-auto">{children}</div>
</main>
2025-02-13 17:28:49 +01:00
</div>
)
}
2025-02-17 22:41:36 +01:00