// (C) 2022-2025 GoodData Corporation
import { put } from "redux-saga/effects";
import { dateFilterValidationFailed } from "../../../events/dashboard.js";
import { dispatchDashboardEvent } from "../../../store/_infra/eventDispatcher.js";
import { tabsActions } from "../../../store/tabs/index.js";
export function* onDateFilterConfigValidationError(ctx, validationResult, correlationId) {
    yield dispatchDashboardEvent(dateFilterValidationFailed(ctx, validationResult, correlationId));
    yield put(tabsActions.addDateFilterConfigValidationWarning(validationResult));
}
