mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
31 lines
748 B
TypeScript
31 lines
748 B
TypeScript
import LeftMenu from '@components/Dashboard/UI/LeftMenu'
|
|
import AdminAuthorization from '@components/Security/AdminAuthorization'
|
|
import ClientComponentSkeleton from '@components/Utils/ClientComp'
|
|
import { Metadata } from 'next'
|
|
import { SessionProvider } from 'next-auth/react'
|
|
import React from 'react'
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'LearnHouse Dashboard',
|
|
}
|
|
|
|
function DashboardLayout({
|
|
children,
|
|
params,
|
|
}: {
|
|
children: React.ReactNode
|
|
params: any
|
|
}) {
|
|
return (
|
|
<>
|
|
<AdminAuthorization authorizationMode="page">
|
|
<div className="flex">
|
|
<LeftMenu />
|
|
<div className="flex w-full">{children}</div>
|
|
</div>
|
|
</AdminAuthorization>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default DashboardLayout
|