"use client"

import { create } from "zustand"

interface RoomAvailabilityState {
  noRoomsAvailable: boolean
  setNoRoomsAvailable: () => void
  setRoomsAvailable: () => void
}

const useRoomAvailableStore = create<RoomAvailabilityState>((set) => ({
  noRoomsAvailable: false,
  setNoRoomsAvailable: () => set(() => ({ noRoomsAvailable: true })),
  setRoomsAvailable: () => set(() => ({ noRoomsAvailable: false })),
}))

export default useRoomAvailableStore
