"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useTimelineContext = exports.TimelineContext = void 0;
const react_1 = require("react");
const consoleWarning_1 = require("../../utils/helpers/consoleWarning");
exports.TimelineContext = (0, react_1.createContext)({
    startDate: new Date(),
    endDate: new Date(),
    direction: "left",
    setStart: () => null,
    setEndInclusive: () => null,
});
const useTimelineContext = () => {
    const context = (0, react_1.useContext)(exports.TimelineContext);
    if (!context) {
        (0, consoleWarning_1.consoleWarning)("<Timeline />: useTimelineContext must be used with TimelineContext");
    }
    return context;
};
exports.useTimelineContext = useTimelineContext;
//# sourceMappingURL=useTimelineContext.js.map