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