Files
web/app/[lang]/(preview)/layout.tsx
2024-09-24 09:47:31 +02:00

28 lines
573 B
TypeScript

import InitLivePreview from "@/components/Current/LivePreview"
import { setLang } from "@/i18n/serverContext"
import type { Metadata } from "next"
import type { LangParams, LayoutArgs } from "@/types/params"
export const metadata: Metadata = {
description: "New web",
title: "Scandic Hotels",
}
export default function RootLayout({
children,
params,
}: React.PropsWithChildren<LayoutArgs<LangParams>>) {
setLang(params.lang)
return (
<html lang={params.lang}>
<body>
<InitLivePreview />
{children}
</body>
</html>
)
}