import { createContext, useContext } from "react";
import { consoleWarning } from "../../utils/helpers/consoleWarning.js";
export const RowContext = createContext({
    periods: [],
    id: "",
    index: 0,
});
export const useRowContext = () => {
    const context = useContext(RowContext);
    if (!context) {
        consoleWarning("<Timeline />: useRowContext must be used with RowContext");
    }
    return context;
};
//# sourceMappingURL=useRowContext.js.map