26 lines
622 B
TypeScript
26 lines
622 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({
|
|
user,
|
|
otherPaymentOptions,
|
|
mustBeGuaranteed,
|
|
supportedCards,
|
|
}: PaymentProps) {
|
|
const savedCreditCards = await getSavedPaymentCardsSafely({
|
|
supportedCards,
|
|
})
|
|
|
|
return (
|
|
<PaymentClient
|
|
user={user}
|
|
otherPaymentOptions={otherPaymentOptions}
|
|
savedCreditCards={savedCreditCards}
|
|
mustBeGuaranteed={mustBeGuaranteed}
|
|
/>
|
|
)
|
|
}
|