@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
3 lines (2 loc) • 920 B
JavaScript
import{a as s}from"./chunk-EJONAG3C.js";import{a as t}from"./chunk-OEBTGNCI.js";import{a as n}from"./chunk-TAHC5Y63.js";import{b as r}from"./chunk-I2NWMXXW.js";import{i as a}from"./chunk-7QE2X3X4.js";import{m as o}from"./chunk-HBP5N4FR.js";o();import e from"react";a();var O=({operation:i,transaction:m})=>{switch(i.type){case"nft":case"esdt":return e.createElement(t,{operation:i,transaction:m},e.createElement(e.Fragment,null,i.esdtType==="NonFungibleESDT"&&e.createElement("div",{className:r.mr1},"NFT"),i.esdtType==="SemiFungibleESDT"&&e.createElement("div",{className:r.mr1},"SFT quantity"),e.createElement(s,{operation:i})));case"egld":return e.createElement(t,{operation:i,transaction:m},e.createElement(e.Fragment,null,e.createElement("div",{className:r.mr2},"Value"),e.createElement(n,{value:i.value,showLastNonZeroDecimal:!0})));default:return null}};export{O as a};
//# sourceMappingURL=chunk-FM3RPKVC.js.map