"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
exports.CatalogContext = React.createContext(undefined);
exports.useCatalogContext = function () {
    var contextValue = React.useContext(exports.CatalogContext);
    if (contextValue === undefined) {
        throw new Error("Tried to get a catalog context, but no context is available. \nPlease make sure to define a catalog component above this component in the react tree.");
    }
    return contextValue;
};
