1+ import { GoogleAnalytics } from '@next/third-parties/google' ;
12import type { Metadata } from 'next' ;
23import { Inter } from 'next/font/google' ;
34import { SessionProvider } from 'next-auth/react' ;
@@ -6,7 +7,6 @@ import { NuqsAdapter } from 'nuqs/adapters/next/app';
67import { Footer } from '@/components/footer/footer' ;
78import { ThemeProvider } from '@/components/theme-provider/theme-provider' ;
89import { Toaster } from '@/components/ui/sonner' ;
9- import { PostHogClientOnlyProvider } from '@/lib/posthog/post-hog-client-only' ;
1010
1111import { FlagEmojiPolyfill } from './components/flag-emoji-polyfill' ;
1212
@@ -31,20 +31,19 @@ export default function RootLayout({ children }: LayoutProps<'/'>) {
3131 style = { { ...inter . style , fontFamily : `'Twemoji Country Flags', ${ inter . style . fontFamily } ` } }
3232 >
3333 < SessionProvider >
34- < PostHogClientOnlyProvider >
35- < NuqsAdapter >
36- < ThemeProvider attribute = "class" defaultTheme = "system" enableSystem disableTransitionOnChange >
37- < FlagEmojiPolyfill />
38- < div className = "flex flex-col min-h-screen" >
39- < div className = "flex-grow" > { children } </ div >
40- < Footer />
41- </ div >
42- < Toaster richColors position = "top-right" />
43- </ ThemeProvider >
44- </ NuqsAdapter >
45- </ PostHogClientOnlyProvider >
34+ < NuqsAdapter >
35+ < ThemeProvider attribute = "class" defaultTheme = "system" enableSystem disableTransitionOnChange >
36+ < FlagEmojiPolyfill />
37+ < div className = "flex flex-col min-h-screen" >
38+ < div className = "flex-grow" > { children } </ div >
39+ < Footer />
40+ </ div >
41+ < Toaster richColors position = "top-right" />
42+ </ ThemeProvider >
43+ </ NuqsAdapter >
4644 </ SessionProvider >
4745 </ body >
46+ < GoogleAnalytics gaId = "G-YKY54NVEGK" />
4847 </ html >
4948 ) ;
5049}
0 commit comments