"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.message = void 0;
const tslib_1 = require("tslib");
const message_1 = tslib_1.__importDefault(require("./message"));
require("./style.less");
function generateSnackbar(funName) {
    return (content, duration) => new Promise((resolve) => {
        message_1.default[funName](content, duration, resolve);
    });
}
exports.message = {
    success: generateSnackbar('success'),
    error: generateSnackbar('error'),
    info: generateSnackbar('info'),
    warning: generateSnackbar('warning'),
    loading: generateSnackbar('loading'),
};
//# sourceMappingURL=index.js.map