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