fix(SW-3551): Fix issue with BookingConfigProvider in RSC * wip move config to pages * Move config providing to pages
19 lines
544 B
TypeScript
19 lines
544 B
TypeScript
import { EnterDetailsPage as EnterDetailsPagePrimitive } from "@scandic-hotels/booking-flow/pages/EnterDetailsPage"
|
|
|
|
import { bookingFlowConfig } from "@/constants/bookingFlowConfig"
|
|
|
|
import type { LangParams, PageArgs } from "@/types/params"
|
|
|
|
export default async function DetailsPage(props: PageArgs<LangParams>) {
|
|
const { lang } = await props.params
|
|
const searchParams = await props.searchParams
|
|
|
|
return (
|
|
<EnterDetailsPagePrimitive
|
|
lang={lang}
|
|
searchParams={searchParams}
|
|
config={bookingFlowConfig}
|
|
/>
|
|
)
|
|
}
|