import { createContext, useContext } from "react";
import { consoleWarning } from "../../utils/helpers/consoleWarning.js";
export const TimelineContext = createContext({
    startDate: new Date(),
    endDate: new Date(),
    direction: "left",
    setStart: () => null,
    setEndInclusive: () => null,
});
export const useTimelineContext = () => {
    const context = useContext(TimelineContext);
    if (!context) {
        consoleWarning("<Timeline />: useTimelineContext must be used with TimelineContext");
    }
    return context;
};
//# sourceMappingURL=useTimelineContext.js.map