feat(SW-1940): Added functionality to see hotel on map from city pages

Approved-by: Fredrik Thorsson
This commit is contained in:
Erik Tiekstra
2025-03-17 13:18:38 +00:00
parent 05addfa0bb
commit c5ad3cba34
10 changed files with 73 additions and 38 deletions

View File

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