import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2026 GoodData Corporation
import { createContext, useContext } from "react";
const AutomationMeasureValueFilterContext = createContext(null);
/**
 * @internal
 */
export const useAutomationMeasureValueFilterContext = () => {
    const context = useContext(AutomationMeasureValueFilterContext);
    if (!context) {
        throw new Error("AutomationMeasureValueFilterContext not found");
    }
    return context;
};
/**
 * @internal
 */
export function AutomationMeasureValueFilterProvider({ children, onChange, onDelete, isLocked, filter, deleteAriaLabel, deleteTooltipContent, lockedTooltipContent, }) {
    return (_jsx(AutomationMeasureValueFilterContext.Provider, { value: {
            onChange,
            onDelete,
            isLocked,
            filter,
            deleteAriaLabel,
            deleteTooltipContent,
            lockedTooltipContent,
        }, children: children }));
}
