are-message
Version:
This is a React global notification message component. It is a standalone implementation of the are-visual message component.
17 lines (14 loc) • 319 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function timeout(callback, duration) {
var timer = window.setTimeout(function () {
callback();
clearTimeout(timer);
}, duration);
return timer;
}
var _default = timeout;
exports.default = _default;