@@ -2,6 +2,7 @@ import BaiDuAnalytics from "@/app/BaiDuAnalytics";
22import GoogleAdsense from "@/app/GoogleAdsense" ;
33import GoogleAnalytics from "@/app/GoogleAnalytics" ;
44import PlausibleAnalytics from "@/app/PlausibleAnalytics" ;
5+ import { SafeBugMailProvider } from "@/components/bugmail-provider" ;
56import Footer from "@/components/footer/Footer" ;
67import Header from "@/components/header/Header" ;
78import { LanguageDetectionAlert } from "@/components/LanguageDetectionAlert" ;
@@ -75,34 +76,36 @@ export default async function LocaleLayout({
7576 "min-h-screen bg-background flex flex-col font-sans antialiased"
7677 ) }
7778 >
78- < NextIntlClientProvider messages = { messages } >
79- < ThemeProvider
80- attribute = "class"
81- defaultTheme = { siteConfig . defaultNextTheme }
82- enableSystem
83- >
84- { messages . LanguageDetection && < LanguageDetectionAlert /> }
85- { messages . Header && < Header /> }
79+ < SafeBugMailProvider >
80+ < NextIntlClientProvider messages = { messages } >
81+ < ThemeProvider
82+ attribute = "class"
83+ defaultTheme = { siteConfig . defaultNextTheme }
84+ enableSystem
85+ >
86+ { messages . LanguageDetection && < LanguageDetectionAlert /> }
87+ { messages . Header && < Header /> }
8688
87- < main className = "flex-1 flex flex-col items-center" >
88- { children }
89- </ main >
89+ < main className = "flex-1 flex flex-col items-center" >
90+ { children }
91+ </ main >
9092
91- { messages . Footer && < Footer /> }
92- </ ThemeProvider >
93- </ NextIntlClientProvider >
94- < TailwindIndicator />
95- { process . env . NODE_ENV === "development" ? (
96- < > </ >
97- ) : (
98- < >
99- < Analytics />
100- < BaiDuAnalytics />
101- < GoogleAnalytics />
102- < GoogleAdsense />
103- < PlausibleAnalytics />
104- </ >
105- ) }
93+ { messages . Footer && < Footer /> }
94+ </ ThemeProvider >
95+ </ NextIntlClientProvider >
96+ < TailwindIndicator />
97+ { process . env . NODE_ENV === "development" ? (
98+ < > </ >
99+ ) : (
100+ < >
101+ < Analytics />
102+ < BaiDuAnalytics />
103+ < GoogleAnalytics />
104+ < GoogleAdsense />
105+ < PlausibleAnalytics />
106+ </ >
107+ ) }
108+ </ SafeBugMailProvider >
106109 </ body >
107110 </ html >
108111 ) ;
0 commit comments