"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToastAction = void 0;
var tslib_1 = require("tslib");
var Action_1 = require("./Action");
/**
 * 全局toast
 */
var ToastAction = /** @class */ (function () {
    function ToastAction() {
    }
    ToastAction.prototype.run = function (action, renderer, event) {
        var _a, _b;
        return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
            return (0, tslib_1.__generator)(this, function (_c) {
                (_b = (_a = event.context.env).notify) === null || _b === void 0 ? void 0 : _b.call(_a, action.msgType, action.msg, action.options);
                return [2 /*return*/];
            });
        });
    };
    return ToastAction;
}());
exports.ToastAction = ToastAction;
(0, Action_1.registerAction)('toast', new ToastAction());
//# sourceMappingURL=./actions/ToastAction.js.map
