Files
cstb-next/src/app/(main)/layout.tsx
2025-03-14 19:15:46 +08:00

35 lines
785 B
TypeScript

"use client"
import Header from "@/components/window/Header"
import Nav from "@/components/window/Nav"
import SideBar from "@/components/window/SideBar"
import { cn } from "@heroui/react"
// import { platform } from "@tauri-apps/plugin-os"
export default function BaseLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<div className="w-full h-full p-0 m-0">
{/* bg-[#f1f0f2] */}
<Nav />
<div className="flex flex-col w-full h-full">
<SideBar />
<main
className={cn(
"flex flex-col h-full pb-5 pr-5 ml-20 overflow-hidden",
// platform() === "windows" ? "ml-20" : "ml-[4.25rem]"
)}
>
<Header />
{children}
</main>
</div>
</div>
)
}