diff --git a/src/app/[lang]/layout.tsx b/src/app/[lang]/layout.tsx index 7885e5f..c1f3021 100644 --- a/src/app/[lang]/layout.tsx +++ b/src/app/[lang]/layout.tsx @@ -9,8 +9,8 @@ import { ImageKitProvider } from "@/components/ui/imagekit-provider"; import { Toaster } from "sonner"; import { getDictionary } from "@/components/internationalization/dictionaries"; import { type Locale, localeConfig } from "@/components/internationalization/config"; -// import { SessionProvider } from "next-auth/react"; -// import { auth } from "@/auth"; +import { SessionProvider } from "next-auth/react"; +import { auth } from "@/auth"; // Configure Rubik font for Arabic const rubik = Rubik({ @@ -80,11 +80,10 @@ export default async function LocaleLayout({ children: React.ReactNode; params: Promise<{ lang: Locale }>; }>) { - // const session = await auth(); - const { lang } = await params; + const [{ lang }, session] = await Promise.all([params, auth()]); const config = localeConfig[lang]; const isRTL = config.dir === 'rtl'; - + return ( - {/* */} - - - -
- - - {children} -
-
-
- - {/*
*/} + + + +
+ + {children} +
+
+
+
);