SW-3270 move interactive map to design system or booking flow * wip * wip * merge * wip * add support for locales in design-system * add story for HotelCard * setup alias * . * remove tracking from design-system for hotelcard * pass isUserLoggedIn * export design-system-new-deprecated.css from design-system * Add HotelMarkerByType to Storybook * Add interactive map to Storybook * fix reactintl in vitest * rename env variables * . * fix background colors * add storybook stories for <Link /> * merge * fix tracking for when clicking 'See rooms' in InteractiveMap * Merge branch 'master' of bitbucket.org:scandic-swap/web into SW-3270-move-interactive-map-to-design-system-or-booking-flow * remove deprecated comment Approved-by: Anton Gunnarsson
35 lines
848 B
TypeScript
35 lines
848 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,
|
|
isAlternativeHotels,
|
|
}: SelectHotelMapProps) {
|
|
return (
|
|
<APIProvider apiKey={apiKey}>
|
|
<SelectHotelMapContent
|
|
hotelPins={hotelPins}
|
|
cityCoordinates={cityCoordinates}
|
|
mapId={mapId}
|
|
hotels={hotels}
|
|
filterList={filterList}
|
|
bookingCode={bookingCode}
|
|
isBookingCodeRateAvailable={isBookingCodeRateAvailable}
|
|
isAlternativeHotels={isAlternativeHotels}
|
|
/>
|
|
</APIProvider>
|
|
)
|
|
}
|