Use the interactive map on the map page

This commit is contained in:
Niclas Edenvin
2024-09-11 13:33:26 +02:00
parent 1e7c24f875
commit 03fa798670
13 changed files with 259 additions and 73 deletions

View File

@@ -3,3 +3,11 @@ import { Hotel } from "@/types/hotel"
export type HotelFiltersProps = {
filters: Hotel["detailedFacilities"]
}
export type Filter = {
name: string
id: number
public: boolean
sortOrder: number
code?: string
}

View File

@@ -0,0 +1,15 @@
import { Coordinates } from "@/types/components/maps/coordinates"
import type { PointOfInterest } from "@/types/hotel"
export interface HotelListingProps {
// pointsOfInterest: PointOfInterest[]
// activePoi: PointOfInterest["name"] | null
// onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
}
export interface SelectHotelMapProps {
apiKey: string
coordinates: Coordinates
pointsOfInterest: PointOfInterest[]
mapId: string
}