"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.usePeriodContext = exports.PeriodContext = void 0;
const react_1 = require("react");
const consoleWarning_1 = require("../../utils/helpers/consoleWarning");
exports.PeriodContext = (0, react_1.createContext)({
    periodId: "",
});
const usePeriodContext = () => {
    const context = (0, react_1.useContext)(exports.PeriodContext);
    if (!context) {
        (0, consoleWarning_1.consoleWarning)("<Timeline />: usePeriodContext must be used with PeriodContext");
    }
    return context;
};
exports.usePeriodContext = usePeriodContext;
//# sourceMappingURL=usePeriodContext.js.map