diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index b2d14bc..bc1188c 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -2,19 +2,14 @@ import { notFound } from 'next/navigation'; import { NextIntlClientProvider } from 'next-intl'; import { getMessages, setRequestLocale } from 'next-intl/server'; import { Inter } from 'next/font/google'; -import dynamic from 'next/dynamic'; import { locales, localeMetadata, seoKeywords, type Locale } from '@/i18n/config'; import type { Metadata } from 'next'; import { Header, Footer, GlobalBackground } from '@/components/layout'; import { PersonJsonLd, ProfessionalServiceJsonLd, OrganizationJsonLd, WebSiteJsonLd } from '@/components/seo'; import { WebVitals } from '@/components/analytics'; +import { ChatbotLoader } from '@/components/chat/ChatbotLoader'; import '../globals.css'; -// Lazy load Chatbot component - uses browser-only APIs (localStorage) -const Chatbot = dynamic(() => import('@/components/chat/Chatbot').then((mod) => mod.Chatbot), { - ssr: false, -}); - const inter = Inter({ subsets: ['latin'], display: 'swap', @@ -130,7 +125,7 @@ export default async function LocaleLayout({ children, params }: Props) {