Files
web/packages/booking-flow/lib/components/EnterDetails/Payment/index.tsx
Joakim Jäderberg 7dee6d5083 Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details

Approved-by: Anton Gunnarsson
2025-09-11 07:16:24 +00:00

26 lines
664 B
TypeScript

import { getSavedPaymentCardsSafely } from "../../../trpc/memoizedRequests/getSavedPaymentCardsSafely"
import PaymentClient from "./PaymentClient"
import type { PaymentMethodEnum } from "@scandic-hotels/common/constants/paymentMethod"
type PaymentProps = {
otherPaymentOptions: PaymentMethodEnum[]
supportedCards: PaymentMethodEnum[]
}
export default async function Payment({
otherPaymentOptions,
supportedCards,
}: PaymentProps) {
const savedCreditCards = await getSavedPaymentCardsSafely({
supportedCards,
})
return (
<PaymentClient
otherPaymentOptions={otherPaymentOptions}
savedCreditCards={savedCreditCards}
/>
)
}