UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

3 lines (2 loc) 821 B
import{b as e}from"./chunk-22ELNG4Z.js";import{a}from"./chunk-W6LEZGEL.js";import{b as m}from"./chunk-I2NWMXXW.js";import{a as p}from"./chunk-NCHDT5N7.js";import{a as s,d as i,m as n}from"./chunk-HBP5N4FR.js";n();import l from"react";import{faSearch as y}from"@fortawesome/free-solid-svg-icons";import{FontAwesomeIcon as C}from"@fortawesome/react-fontawesome";import h from"classnames";var G=E=>{var t=E,{page:f,text:r,className:k="dapp-explorer-link",children:o}=t,g=i(t,["page","text","className","children"]);let{network:{explorerAddress:c}}=a(),d=r!=null?r:l.createElement(C,{icon:y,className:e.search}),x=p({explorerAddress:String(c),to:f});return l.createElement("a",s({href:x,target:"_blank",className:h(e.link,m.ml2,k),rel:"noreferrer"},g),o!=null?o:d)};export{G as a}; //# sourceMappingURL=chunk-JMPR5MAD.js.map