Files
web/components/HotelReservation/SelectHotel/SelectHotelMap/index.tsx
2024-12-12 20:30:41 +01:00

29 lines
628 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,
}: SelectHotelMapProps) {
return (
<APIProvider apiKey={apiKey}>
<SelectHotelMapContent
hotelPins={hotelPins}
cityCoordinates={cityCoordinates}
mapId={mapId}
hotels={hotels}
filterList={filterList}
/>
</APIProvider>
)
}