@web3sdks/chain-icons
Version:
A quick, easy and light-weight way to add chain / network icons to your react app.
49 lines (48 loc) • 2.15 kB
JavaScript
;
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/nervos-network.tsx
var nervos_network_exports = {};
__export(nervos_network_exports, {
default: () => nervos_network_default
});
module.exports = __toCommonJS(nervos_network_exports);
var React = __toESM(require("react"));
var NervosNetwork = (props) => /* @__PURE__ */ React.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 271 227",
...props
}, /* @__PURE__ */ React.createElement("path", {
fill: "#424242",
d: "M0 0v136.6h45.5V0H0zm225.7 91v136.6h45.5V91h-45.5zM134.6 0v89.1l45.5 45.5V45.5L134.6 0zM91.1 93v89.1l45.5 45.5v-89.1L91.1 93z"
}), /* @__PURE__ */ React.createElement("path", {
d: "M134.6 0h45.5l91.1 91h-45.5L134.6 0zM0 136.6h45.5l91.1 91H91.1L0 136.6z"
}), /* @__PURE__ */ React.createElement("path", {
fill: "#3cc68a",
d: "M180.1 45.5V134L45.5 0v136.6l45.6 45.5V93.6l134.6 134V91l-45.6-45.5z"
}));
var nervos_network_default = NervosNetwork;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
//# sourceMappingURL=nervos-network.js.map