"use strict";

exports.__esModule = true;
exports.useToolbarCollectionContext = exports.ToolbarCollectionProvider = exports.ToolbarCollectionContext = exports.ToolbarCollectionConsumer = void 0;
var _react = require("react");
var _createContext = require("../createContext");
const ToolbarCollectionContext = exports.ToolbarCollectionContext = /*#__PURE__*/(0, _react.createContext)(null);
const ToolbarCollectionProvider = exports.ToolbarCollectionProvider = ToolbarCollectionContext.Provider;
const ToolbarCollectionConsumer = exports.ToolbarCollectionConsumer = ToolbarCollectionContext.Consumer;
const useToolbarCollectionContext = () => {
  const value = (0, _react.useContext)(ToolbarCollectionContext);
  (0, _createContext.assertContextValue)('ToolbarCollectionProvider', value);
  return value;
};
exports.useToolbarCollectionContext = useToolbarCollectionContext;
//# sourceMappingURL=ToolbarCollectionContext.js.map