feat(SW-1078): mixed rate scenario * feat(SW-1078): mixed rate scenario * fix: change from css string modification to array join * refactor: split out big reduce function into smaller parts * fix: minor fixes and improvments * fix: added room index map to localization string Approved-by: Christian Andolf
22 lines
534 B
TypeScript
22 lines
534 B
TypeScript
import { getSavedPaymentCardsSafely } from "@/lib/trpc/memoizedRequests"
|
|
|
|
import PaymentClient from "./PaymentClient"
|
|
|
|
import type { PaymentProps } from "@/types/components/hotelReservation/enterDetails/payment"
|
|
|
|
export default async function Payment({
|
|
otherPaymentOptions,
|
|
supportedCards,
|
|
}: PaymentProps) {
|
|
const savedCreditCards = await getSavedPaymentCardsSafely({
|
|
supportedCards,
|
|
})
|
|
|
|
return (
|
|
<PaymentClient
|
|
otherPaymentOptions={otherPaymentOptions}
|
|
savedCreditCards={savedCreditCards}
|
|
/>
|
|
)
|
|
}
|