feat(SW-664): Hotel listing component and queries for content pages
This commit is contained in:
8
types/components/blocks/hotelListing.ts
Normal file
8
types/components/blocks/hotelListing.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { HotelListing } from "@/types/trpc/routers/contentstack/blocks"
|
||||
|
||||
export interface HotelListingProps {
|
||||
heading?: string
|
||||
locationFilter: HotelListing["locationFilter"]
|
||||
hotelsToInclude: HotelListing["hotelsToInclude"]
|
||||
contentType: HotelListing["contentType"]
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
export type HotelListingItemProps = {
|
||||
imageUrl: string
|
||||
altText: string
|
||||
name: string
|
||||
address: string
|
||||
distanceToCentre: number
|
||||
description: string
|
||||
link: string
|
||||
import type { Hotel } from "@/types/hotel"
|
||||
import type { HotelListing } from "@/types/trpc/routers/contentstack/blocks"
|
||||
|
||||
export interface HotelListingItemProps {
|
||||
hotel: Hotel
|
||||
contentType: HotelListing["contentType"]
|
||||
url: string | null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user