"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = useSlotFills;
var _element = require("@wordpress/element");
var _compose = require("@wordpress/compose");
var _slotFillContext = _interopRequireDefault(require("./slot-fill-context"));
/**
 * WordPress dependencies
 */

/**
 * Internal dependencies
 */

function useSlotFills(name) {
  const registry = (0, _element.useContext)(_slotFillContext.default);
  return (0, _compose.useObservableValue)(registry.fills, name);
}
//# sourceMappingURL=use-slot-fills.js.map