import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2019-2026 GoodData Corporation
import { createContext, useContext } from "react";
/**
 * @internal
 */
const DashboardCustomizationsContext = createContext({});
DashboardCustomizationsContext.displayName = "DashboardCustomizationsContext";
/**
 * @internal
 */
export const useDashboardCustomizationsContext = (localCustomizationOverrides) => {
    const globalCustomizations = useContext(DashboardCustomizationsContext);
    return {
        ...globalCustomizations,
        ...localCustomizationOverrides,
    };
};
/**
 * @internal
 */
export function DashboardCustomizationsProvider({ children, ...components }) {
    return (_jsx(DashboardCustomizationsContext.Provider, { value: components, children: children }));
}
//# sourceMappingURL=DashboardCustomizationsContext.js.map