feat(SW-325): added pois to the list and dynamic map
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import type { PointOfInterest } from "@/types/hotel"
|
||||
import type { Coordinates } from "../../maps/coordinates"
|
||||
|
||||
export interface DynamicMapProps {
|
||||
apiKey: string
|
||||
hotelName: string
|
||||
coordinates: Coordinates
|
||||
pointsOfInterest: PointOfInterest[]
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import type { Coordinates } from "../../maps/coordinates"
|
||||
|
||||
export interface DynamicMapContentProps {
|
||||
hotelName: string
|
||||
coordinates: Coordinates
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
import { PointOfInterest } from "@/types/hotel"
|
||||
|
||||
export interface MapCardProps {
|
||||
hotelName: string
|
||||
pois: PointOfInterest[]
|
||||
}
|
||||
|
||||
9
types/components/hotelPage/map/mapContent.ts
Normal file
9
types/components/hotelPage/map/mapContent.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { PointOfInterest } from "@/types/hotel"
|
||||
import type { Coordinates } from "../../maps/coordinates"
|
||||
|
||||
export interface MapContentProps {
|
||||
coordinates: Coordinates
|
||||
pointsOfInterest: PointOfInterest[]
|
||||
activePoi: PointOfInterest["name"] | null
|
||||
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
|
||||
}
|
||||
8
types/components/hotelPage/map/sidebar.ts
Normal file
8
types/components/hotelPage/map/sidebar.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { PointOfInterest } from "@/types/hotel"
|
||||
|
||||
export interface SidebarProps {
|
||||
hotelName: string
|
||||
pointsOfInterest: PointOfInterest[]
|
||||
activePoi: PointOfInterest["name"] | null
|
||||
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
|
||||
}
|
||||
Reference in New Issue
Block a user