feat(SW-1957): Mapview on hotel pages is now activated by search params
Approved-by: Matilda Landström
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
import { create } from "zustand"
|
||||
|
||||
interface HotelPageState {
|
||||
isDynamicMapOpen: boolean
|
||||
openDynamicMap: () => void
|
||||
closeDynamicMap: () => void
|
||||
}
|
||||
|
||||
const useHotelPageStore = create<HotelPageState>((set) => ({
|
||||
isDynamicMapOpen: false,
|
||||
openDynamicMap: () => set({ isDynamicMapOpen: true }),
|
||||
closeDynamicMap: () => set({ isDynamicMapOpen: false }),
|
||||
}))
|
||||
|
||||
export default useHotelPageStore
|
||||
Reference in New Issue
Block a user