import { createContext, useContext } from "react";
import { consoleWarning } from "../../utils/helpers/consoleWarning.js";
export const PeriodContext = createContext({
    periodId: "",
});
export const usePeriodContext = () => {
    const context = useContext(PeriodContext);
    if (!context) {
        consoleWarning("<Timeline />: usePeriodContext must be used with PeriodContext");
    }
    return context;
};
//# sourceMappingURL=usePeriodContext.js.map