// (C) 2026 GoodData Corporation
import { createContext, useContext } from "react";
const AlertingManagementDialogContext = createContext(undefined);
export const AlertingManagementDialogContextProvider = AlertingManagementDialogContext.Provider;
export function useAlertingManagementDialogContext() {
    const ctx = useContext(AlertingManagementDialogContext);
    if (!ctx) {
        throw new Error("useAlertingManagementDialogContext must be used within AlertingManagementDialogContextProvider");
    }
    return ctx;
}
