Feat/SW-822 handle breakfast included * feat(SW-822): Added flag for breakfast included and hide breakfast step if included * fix: check if window is defined to avoid error during SSR * fix: remove return if rate definition is not found because its expected if input is undefined Approved-by: Christel Westerberg Approved-by: Arvid Norlin
20 lines
845 B
TypeScript
20 lines
845 B
TypeScript
import type { BedTypeSelection } from "@/types/components/hotelReservation/enterDetails/bedType"
|
|
import type { BookingData } from "@/types/components/hotelReservation/enterDetails/bookingData"
|
|
import type { BreakfastPackage } from "@/types/components/hotelReservation/enterDetails/breakfast"
|
|
import type { StepEnum } from "@/types/enums/step"
|
|
import type { RoomAvailability } from "@/types/trpc/routers/hotel/availability"
|
|
import type { SafeUser } from "@/types/user"
|
|
import type { Packages } from "../requests/packages"
|
|
|
|
export interface DetailsProviderProps extends React.PropsWithChildren {
|
|
booking: BookingData
|
|
bedTypes: BedTypeSelection[]
|
|
showBreakfastStep: boolean
|
|
packages: Packages | null
|
|
roomRate: Pick<RoomAvailability, "memberRate" | "publicRate">
|
|
searchParamsStr: string
|
|
step: StepEnum
|
|
user: SafeUser
|
|
vat: number
|
|
}
|