// (C) 2021-2026 GoodData Corporation
import { dispatchDashboardEvent } from "../../store/_infra/eventDispatcher.js";
export function* triggerEventHandler(ctx, cmd) {
    // fill the ctx property of the event properly so that the caller does not need to do this
    const fullEvent = {
        ...cmd.payload.eventBody,
        ctx,
    };
    yield dispatchDashboardEvent(fullEvent);
}
