import { notFound } from 'next/navigation.js' import { CookieBanner } from '@intecion/ipal-kit/client' import { SiteProviders } from '@intecion/ipal-kit/rsc' import { getConfiguredLocales, getSiteShell } from '../../../lib/content.js' import './styles.css' type Props = { children: React.ReactNode; params: Promise<{ locale: string }> } export default async function LocaleLayout({ children, params }: Props) { const { locale } = await params if (!(await getConfiguredLocales()).includes(locale)) notFound() return ( } logEndpoint="/api/ipal/consent" shell={await getSiteShell(locale)} stats={{ locale }}>
{children}
{/* A footer with links in the bottom-left corner: CookieButton must not cover them. */}
) }