- Forms: step and checkboxGroup field types (radio, date on), server validation for them, useBuilderForm (logic) + BuilderForm (unstyled default) + RenderForm (/rsc: rich text, bound action, public part of the form only — the Emails tab never reaches the browser) - Notifications: next / back / stepOf texts - createContentHelpers: getSiteShell, getFormTexts, getLinkOptions, resolveLink, resolveNav, resolvePageRedirect, one-line route handlers (llms, llms-full, md, mcp, health, indexnow, manifest) - /rsc: SiteProviders, createPageRoute, createNotFoundPage - resolveLink / resolveNav / homeSlugFrom, buildSectionHeaderField / buildSectionSettingsField - Dev sandbox frontend built on these imports; tests (unit + real Payload) Co-Authored-By: Claude Opus 5.5 <[email protected]>
23 lines
784 B
TypeScript
23 lines
784 B
TypeScript
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 (
|
|
<html lang={locale}>
|
|
<body>
|
|
<SiteProviders banner={<CookieBanner equalChoice />} logEndpoint="/api/ipal/consent" shell={await getSiteShell(locale)}>
|
|
<main>{children}</main>
|
|
</SiteProviders>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|