UNPKG

@airgap/etherlink

Version:

The @airgap/etherlink package is an implementation of the ICoinProtocol interface from @airgap/coinlib-core.

31 lines 1.18 kB
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.newErrorUIAlert = exports.newWarningUIAlert = exports.newInfoUIAlert = exports.newSuccessUIAlert = void 0; function newSuccessUIAlert(alert) { return __assign(__assign({}, alert), { type: 'success' }); } exports.newSuccessUIAlert = newSuccessUIAlert; function newInfoUIAlert(alert) { return __assign(__assign({}, alert), { type: 'info' }); } exports.newInfoUIAlert = newInfoUIAlert; function newWarningUIAlert(alert) { return __assign(__assign({}, alert), { type: 'warning' }); } exports.newWarningUIAlert = newWarningUIAlert; function newErrorUIAlert(alert) { return __assign(__assign({}, alert), { type: 'error' }); } exports.newErrorUIAlert = newErrorUIAlert; //# sourceMappingURL=alert.js.map