import "@scandic-hotels/design-system/fonts.css" import "@scandic-hotels/design-system/normalize.css" import "@/app/globals.css" import "@scandic-hotels/design-system/style.css" import "@scandic-hotels/design-system/design-system-new-deprecated.css" import Script from "next/script" import { SessionProvider } from "next-auth/react" import { NuqsAdapter } from "@scandic-hotels/booking-flow/utils/nuqs" import { Lang } from "@scandic-hotels/common/constants/language" import { ToastHandler } from "@scandic-hotels/design-system/ToastHandler" import TrpcProvider from "@/lib/trpc/Provider" import { BookingFlowProviders } from "@/components/BookingFlowProviders" import RouteChange from "@/components/RouteChange" import AdobeSDKScript from "@/components/TrackingSDK/AdobeSDKScript" import GTMScript from "@/components/TrackingSDK/GTMScript" import { FontPreload } from "@/fonts/font-preloading" import { getMessages } from "@/i18n" import ClientIntlProvider from "@/i18n/Provider" import { setLang } from "@/i18n/serverContext" import styles from "./layout.module.css" import type { Metadata } from "next" export const metadata: Metadata = { title: "Webview", } export default async function RootLayout( props: LayoutProps<"/[lang]/webview"> ) { const params = await props.params const lang = params.lang as Lang const { children } = props setLang(lang) const messages = await getMessages(lang) return ( {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */} {children} ) }