generated from muhtadeetaron/nextjs-template
initial commit
This commit is contained in:
20
torpedo/app/dashboard/layout.tsx
Normal file
20
torpedo/app/dashboard/layout.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
// app/dashboard/layout.tsx
|
||||
"use client";
|
||||
import Sidebar from "@/components/dashboard/Sidebar";
|
||||
import React from "react";
|
||||
import { SessionProvider } from "next-auth/react";
|
||||
|
||||
const DashboardLayout: React.FC<{ children: React.ReactNode }> = ({
|
||||
children,
|
||||
}) => {
|
||||
return (
|
||||
<div className="flex h-screen">
|
||||
<SessionProvider>
|
||||
<Sidebar />
|
||||
<main className="flex-1 p-6 bg-[#151515]">{children}</main>
|
||||
</SessionProvider>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default DashboardLayout;
|
||||
Reference in New Issue
Block a user