src/app/layout.tsximport '@/styles/tailwind.css'import { bodyFont } from '@/fonts/body'import { headingFont } from '@/fonts/heading'import { heading2Font } from '@/fonts/heading2'import { heading3Font } from '@/fonts/heading3'import { accentFont } from '@/fonts/accent'import type { Metadata } from 'next'import SmoothScroll from '@/hooks/smooth-scroll'import IframeHeight from '@/hooks/use-iframe-height'import { baseURL } from './metadata'import { seo } from '@/config'import GoogleAds from '@/hooks/google-ads'import { GoogleAnalytics } from '@next/third-parties/google'import { Analytics } from '@vercel/analytics/react'import FloatingAiChat from '@/components/ai-chat/floating'import { FlowTrace } from '@/hooks/flow-trace'import { Suspense } from 'react'export const revalidate = 86400export const metadata: Metadata = {metadataBase: new URL(String(baseURL)),robots: {index: true,follow: true,nocache: false,googleBot: {index: true,follow: true,noimageindex: false,'max-video-preview': 30,'max-image-preview': 'large','max-snippet': -1,},},title: {default: seo.defaultTitle,template: '%s',},openGraph: {siteName: seo.siteName,locale: 'en_US',type: 'website',},}const rootStyle = {['--font-body-family' as string]: bodyFont.style.fontFamily,['--font-heading-family' as string]: headingFont.style.fontFamily,['--font-heading2-family' as string]: heading2Font.style.fontFamily,['--font-heading3-family' as string]: heading3Font.style.fontFamily,['--font-accent-family' as string]: accentFont.style.fontFamily,}export default function RootLayout({children,}: Readonly<{children: React.ReactNode}>) {return (<htmllang="en"style={rootStyle}><body className="bg-body font-body text-lg font-medium leading-normal text-contrast antialiased"><div>{children}</div><Suspense><FlowTrace /></Suspense><FloatingAiChat /><SmoothScroll /><IframeHeight />{process.env.VERCEL === '1' && <Analytics />}</body>{process.env.NODE_ENV === 'production' &&process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS && (<GoogleAnalyticsgaId={String(process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS)}/>)}{process.env.NODE_ENV === 'production' &&process.env.NEXT_PUBLIC_GOOGLE_ADS_ID && (<GoogleAdsadId={String(process.env.NEXT_PUBLIC_GOOGLE_ADS_ID)}loadGtagJs={false}/>)}</html>)}