import type { BedTypeSelection } from "@/types/components/hotelReservation/enterDetails/bedType"
import type { RoomRate } from "@/types/components/hotelReservation/enterDetails/details"
import type { RateEnum } from "@/types/enums/rate"
import type { Package } from "@/types/requests/packages"

export interface Room {
  bedTypes: BedTypeSelection[]
  breakfastIncluded: boolean
  cancellationRule?: string
  cancellationText: string
  mustBeGuaranteed: boolean
  memberMustBeGuaranteed: boolean | undefined
  packages: Package[]
  rate: RateEnum
  rateDefinitionTitle: string
  rateDetails: string[]
  memberRateDetails: string[] | undefined
  rateTitle: string | undefined
  rateType: string
  roomRate: RoomRate
  roomType: string
  roomTypeCode: string
  isAvailable: boolean
  isFlexRate: boolean
}

export interface RoomProviderProps extends React.PropsWithChildren {
  idx: number
  room: Room
}
