Adapt the interactive map for reuse

This commit is contained in:
Niclas Edenvin
2024-09-26 15:27:24 +02:00
parent 1440b4dbae
commit 1e7c24f875
4 changed files with 33 additions and 20 deletions

View File

@@ -1,10 +1,13 @@
import { ReactElement } from "react"
import type { Coordinates } from "@/types/components/maps/coordinates"
import type { PointOfInterest } from "@/types/hotel"
export interface MapContentProps {
export interface InteractiveMapProps {
coordinates: Coordinates
pointsOfInterest: PointOfInterest[]
activePoi: PointOfInterest["name"] | null
mapId: string
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
closeButton: ReactElement
}