mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
26 lines
No EOL
692 B
TypeScript
26 lines
No EOL
692 B
TypeScript
'use client';
|
|
import LeftMenu from '@components/Dashboard/UI/LeftMenu'
|
|
import AdminAuthorization from '@components/Security/AdminAuthorization'
|
|
import { SessionProvider } from 'next-auth/react'
|
|
import React from 'react'
|
|
|
|
function ClientAdminLayout({
|
|
children,
|
|
params,
|
|
}: {
|
|
children: React.ReactNode
|
|
params: any
|
|
}) {
|
|
return (
|
|
<SessionProvider>
|
|
<AdminAuthorization authorizationMode="page">
|
|
<div className="flex">
|
|
<LeftMenu />
|
|
<div className="flex w-full">{children}</div>
|
|
</div>
|
|
</AdminAuthorization>
|
|
</SessionProvider>
|
|
)
|
|
}
|
|
|
|
export default ClientAdminLayout |