feat: use getHotel data
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import { Hotel } from "@/types/hotel"
|
||||
|
||||
export type HotelCardProps = { hotel: Hotel }
|
||||
@@ -4,6 +4,7 @@ import { getHotelDataSchema } from "@/server/routers/hotels/output"
|
||||
|
||||
export type HotelData = z.infer<typeof getHotelDataSchema>
|
||||
|
||||
export type Hotel = HotelData["data"]["attributes"]
|
||||
export type HotelAddress = HotelData["data"]["attributes"]["address"]
|
||||
export type HotelLocation = HotelData["data"]["attributes"]["location"]
|
||||
export type HotelTripAdvisor =
|
||||
|
||||
Reference in New Issue
Block a user