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