Files
web/apps/scandic-web/stores/destination-page-hotels-map.ts
Erik Tiekstra f93afdbfbf Feat/SW-1937 destination overview map mobile
* feat(SW-1937): Added gestureHandling prop to be able to scroll past the map on the overview page

* feat(SW-1937): Added active map card on overview page for smaller viewports

Approved-by: Matilda Landström
2025-03-24 07:34:36 +00:00

17 lines
534 B
TypeScript

import { create } from "zustand"
interface DestinationPageHotelsMapState {
hoveredMarker: string | null
activeMarker: string | null
setHoveredMarker: (hotelId: string | null) => void
setActiveMarker: (hotelId: string | null) => void
}
export const useDestinationPageHotelsMapStore =
create<DestinationPageHotelsMapState>((set) => ({
hoveredMarker: null,
activeMarker: null,
setHoveredMarker: (hotelId) => set({ hoveredMarker: hotelId }),
setActiveMarker: (hotelId) => set({ activeMarker: hotelId }),
}))