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