Merged in feat/SW-1750-map-connection (pull request #1439)

Feat(SW-1750): Destination page map connection 

Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-03-03 07:56:40 +00:00
parent 21255f8557
commit 3f01266a75
8 changed files with 114 additions and 53 deletions

View File

@@ -0,0 +1,16 @@
import { create } from "zustand"
interface DestinationPageHotelsMapState {
hoveredHotel: string | null
clickedHotel: string | null
setHoveredHotel: (hotelId: string | null) => void
setClickedHotel: (hotelId: string | null) => void
}
export const useDestinationPageHotelsMapStore =
create<DestinationPageHotelsMapState>((set) => ({
hoveredHotel: null,
clickedHotel: null,
setHoveredHotel: (hotelId) => set({ hoveredHotel: hotelId }),
setClickedHotel: (hotelId) => set({ clickedHotel: hotelId }),
}))