feat(SW-664): Hotel listing component and queries for content pages
This commit is contained in:
@@ -8,6 +8,7 @@ import type {
|
||||
} from "@/types/requests/packages"
|
||||
import type { Lang } from "@/constants/languages"
|
||||
import type {
|
||||
GetHotelsInput,
|
||||
GetRoomsAvailabilityInput,
|
||||
GetSelectedRoomAvailabilityInput,
|
||||
HotelDataInput,
|
||||
@@ -62,6 +63,12 @@ export const getUserTracking = cache(async function getMemoizedUserTracking() {
|
||||
return serverClient().user.tracking()
|
||||
})
|
||||
|
||||
export const getHotels = cache(async function getMemoizedHotels(
|
||||
input: GetHotelsInput
|
||||
) {
|
||||
return serverClient().hotel.hotels.get(input)
|
||||
})
|
||||
|
||||
export const getHotelData = cache(async function getMemoizedHotelData(
|
||||
input: HotelDataInput
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user