// packages/block-editor/src/components/block-edit/context.js
import { createContext, useContext } from "@wordpress/element";
var mayDisplayControlsKey = Symbol("mayDisplayControls");
var mayDisplayParentControlsKey = Symbol("mayDisplayParentControls");
var blockEditingModeKey = Symbol("blockEditingMode");
var blockBindingsKey = Symbol("blockBindings");
var isPreviewModeKey = Symbol("isPreviewMode");
var DEFAULT_BLOCK_EDIT_CONTEXT = {
  name: "",
  isSelected: false
};
var Context = createContext(DEFAULT_BLOCK_EDIT_CONTEXT);
Context.displayName = "BlockEditContext";
var { Provider } = Context;
function useBlockEditContext() {
  return useContext(Context);
}
export {
  Provider as BlockEditContextProvider,
  DEFAULT_BLOCK_EDIT_CONTEXT,
  blockBindingsKey,
  blockEditingModeKey,
  isPreviewModeKey,
  mayDisplayControlsKey,
  mayDisplayParentControlsKey,
  useBlockEditContext
};
//# sourceMappingURL=context.js.map
