"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _components = require("@wordpress/components");
var _lockUnlock = require("../../lock-unlock");
var _context = require("../block-edit/context");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * WordPress dependencies
 */

/**
 * Internal dependencies
 */

const {
  createPrivateSlotFill
} = (0, _lockUnlock.unlock)(_components.privateApis);
const {
  Fill,
  Slot
} = createPrivateSlotFill('BlockInformation');
const BlockInfo = props => {
  const context = (0, _context.useBlockEditContext)();
  if (!context[_context.mayDisplayControlsKey]) {
    return null;
  }
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Fill, {
    ...props
  });
};
BlockInfo.Slot = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(Slot, {
  ...props
});
var _default = exports.default = BlockInfo;
//# sourceMappingURL=index.js.map