Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
20 lines
529 B
TypeScript
20 lines
529 B
TypeScript
'use client'
|
|
|
|
import type { ReactNode } from 'react'
|
|
|
|
import Loading from '@/components/layouts/Loading'
|
|
import { AuthProvider } from '@/context/AuthContext'
|
|
import { LoadingProvider } from '@/context/LoadingContext'
|
|
|
|
/** Admin session shell — no consumer AuthGate / event overlay / payment modal. */
|
|
export default function SessionProviders({ children }: { children: ReactNode }) {
|
|
return (
|
|
<LoadingProvider>
|
|
<AuthProvider>
|
|
{children}
|
|
<Loading />
|
|
</AuthProvider>
|
|
</LoadingProvider>
|
|
)
|
|
}
|