feat(SW-176): use the availability endpoint
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
import { Hotel } from "@/types/hotel"
|
||||
import {
|
||||
Availability,
|
||||
AvailabilityPrices,
|
||||
} from "@/server/routers/hotels/output"
|
||||
|
||||
export type HotelCardProps = { hotel: Hotel }
|
||||
export type HotelCardProps = {
|
||||
checkInDate: Availability["data"][number]["attributes"]["checkInDate"]
|
||||
checkOutDate: Availability["data"][number]["attributes"]["checkOutDate"]
|
||||
hotelId: Availability["data"][number]["attributes"]["hotelId"]
|
||||
price: AvailabilityPrices
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user