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 { InsightAlertsNew } from "./InsightAlertsNew.js";
import { InsightAlertsOld } from "./InsightAlertsOld.js";
export function InsightAlerts({ widget, onClose, onGoBack }) {
    const enableAutomationFilters = useDashboardSelector(selectEnableAutomationFilterContext);
    if (enableAutomationFilters) {
        return _jsx(InsightAlertsNew, { widget: widget, onClose: onClose, onGoBack: onGoBack });
    }
    return _jsx(InsightAlertsOld, { widget: widget, onClose: onClose, onGoBack: onGoBack });
}
//# sourceMappingURL=InsightAlerts.js.map