Feat/SW-1517 booking codes tracking * feat: SW-1517 Updated tracking to inlcude booking code info * feat: SW-1517 Tracking booking codes * feat: SW-1517 booking code multiroom tracking * feat: SW-1517 booking code tracking select-hotel map view * feat: SW-1517 Updated to optional param * feat: SW-1517 Optimized with map * feat: SW-1517 Typings update * feat: SW-1517 Replaced reduce with map and join * feat: SW-1517 Updated typings Approved-by: Christian Andolf
33 lines
771 B
TypeScript
33 lines
771 B
TypeScript
"use client"
|
|
|
|
import { APIProvider } from "@vis.gl/react-google-maps"
|
|
|
|
import SelectHotelMapContent from "./SelectHotelMapContent"
|
|
|
|
import type { SelectHotelMapProps } from "@/types/components/hotelReservation/selectHotel/map"
|
|
|
|
export default function SelectHotelMap({
|
|
apiKey,
|
|
hotelPins,
|
|
mapId,
|
|
hotels,
|
|
filterList,
|
|
cityCoordinates,
|
|
bookingCode,
|
|
isBookingCodeRateAvailable,
|
|
}: SelectHotelMapProps) {
|
|
return (
|
|
<APIProvider apiKey={apiKey}>
|
|
<SelectHotelMapContent
|
|
hotelPins={hotelPins}
|
|
cityCoordinates={cityCoordinates}
|
|
mapId={mapId}
|
|
hotels={hotels}
|
|
filterList={filterList}
|
|
bookingCode={bookingCode}
|
|
isBookingCodeRateAvailable={isBookingCodeRateAvailable}
|
|
/>
|
|
</APIProvider>
|
|
)
|
|
}
|