feat(SW-176): use the availability endpoint

This commit is contained in:
Fredrik Thorsson
2024-08-29 15:25:21 +02:00
parent d11554168f
commit 3c82a8b4b5
6 changed files with 63 additions and 29 deletions

View File

@@ -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
}