blob: 393ad8bbc45b66027bbd0902d259aca5e58886c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { Separator } from "@/components/ui/separator";
import MobileSidebar from "./components/ModileSidebar";
import Sidebar from "./components/Sidebar";
export default async function Dashboard({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<div className="flex h-screen w-screen flex-col sm:flex-row">
<div className="hidden flex-none sm:flex">
<Sidebar />
</div>
<main className="flex-1 overflow-y-auto bg-gray-100">
<div className="block w-full sm:hidden">
<MobileSidebar />
<Separator />
</div>
{children}
</main>
</div>
);
}
|