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
