import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2025 GoodData Corporation
import { createContext, useContext } from "react";
const AutomationDateFilterContext = createContext(null);
/**
 * @internal
 */
export const useAutomationDateFilterContext = () => {
    const context = useContext(AutomationDateFilterContext);
    if (!context) {
        throw new Error("AutomationDateFilterContext not found");
    }
    return context;
};
/**
 * @internal
 */
export function AutomationDateFilterProvider({ children, onDelete, isLocked, isCommonDateFilter, filter, deleteAriaLabel, deleteTooltipContent, lockedTooltipContent, }) {
    return (_jsx(AutomationDateFilterContext.Provider, { value: {
            onDelete,
            isLocked,
            isCommonDateFilter,
            filter,
            deleteAriaLabel,
            deleteTooltipContent,
            lockedTooltipContent,
        }, children: children }));
}
//# sourceMappingURL=AutomationDateFilterContext.js.map