import type { CreditCard } from "@/types/user"
import type { PaymentMethodEnum } from "@/constants/booking"

export interface PaymentProps {
  otherPaymentOptions: PaymentMethodEnum[]
  supportedCards: PaymentMethodEnum[]
}

export interface PaymentClientProps
  extends Omit<PaymentProps, "supportedCards"> {
  savedCreditCards: CreditCard[] | null
  isUserLoggedIn: boolean
}

export type PriceChangeData = Array<{
  roomPrice: number
  totalPrice: number
  packagePrice?: number
} | null>

export interface TermsAndConditionsProps {
  isFlexBookingTerms: boolean
}
