import { shallow } from 'zustand/shallow';
import withImmutableActions from '@bigbinary/neeto-commons-frontend/react-utils/withImmutableActions';
import { create } from 'zustand';

/** @type {import("neetocommons/react-utils").ZustandStoreHook} */
var useKeyboardShortcutsStore = create(withImmutableActions(function (set) {
  return {
    isOpen: false,
    setIsOpen: function setIsOpen(arg) {
      if (typeof arg === "function") {
        set(function (state) {
          return {
            isOpen: arg(state.isOpen)
          };
        });
      } else {
        set({
          isOpen: arg
        });
      }
    }
  };
}));
var useKeyboardShortcutsPaneState = function useKeyboardShortcutsPaneState() {
  var _useKeyboardShortcuts = useKeyboardShortcutsStore(function (store) {
      return {
        isOpen: store["isOpen"],
        setIsOpen: store["setIsOpen"]
      };
    }, shallow),
    isOpen = _useKeyboardShortcuts.isOpen,
    setIsOpen = _useKeyboardShortcuts.setIsOpen;
  return [isOpen, setIsOpen];
};

export { useKeyboardShortcutsPaneState as u };
//# sourceMappingURL=useKeyboardShortcutsPaneState-C_eLceJQ.js.map
