import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2022-2026 GoodData Corporation
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
import { selectEnableAutomationFilterContext } from "../../../model/store/config/configSelectors.js";
import { AlertingDialogProviderNew } from "./AlertingDialogProviderNew.js";
import { AlertingDialogProviderOld } from "./AlertingDialogProviderOld.js";
export function AlertingDialogProvider() {
    const enableAutomationFilters = useDashboardSelector(selectEnableAutomationFilterContext);
    if (enableAutomationFilters) {
        return _jsx(AlertingDialogProviderNew, {});
    }
    return _jsx(AlertingDialogProviderOld, {});
}
//# sourceMappingURL=AlertingDialogProvider.js.map