// (C) 2023-2026 GoodData Corporation
import { keyDriverAnalysis } from "../../../model/commands/drill.js";
import { useDashboardCommandProcessing } from "../../../model/react/useDashboardCommandProcessing.js";
/**
 * @internal
 */
export const useKeyDriverAnalysis = ({ onSuccess, onError, onBeforeRun, } = {}) => {
    return useDashboardCommandProcessing({
        commandCreator: keyDriverAnalysis,
        successEvent: "GDC.DASH/EVT.DRILL.KEY_DRIVER_ANALYSIS.RESOLVED",
        errorEvent: "GDC.DASH/EVT.COMMAND.FAILED",
        onSuccess,
        onError,
        onBeforeRun,
    });
};
//# sourceMappingURL=useKeyDriverAnalysis.js.map