import React from "react"; import { OverlayTrigger, Tooltip } from "react-bootstrap"; import VBLogo from "src/assets/images/VBLogo.png"; import "./ViewBlockLink.css"; interface IProps { network: string; type: string; identifier: string; } const ViewBlockLink: React.FC = ({ network, type, identifier }) => { if ( network !== "https://api.zilliqa.com" && network !== "https://dev-api.zilliqa.com" ) return null; let viewBlockUrl = `https://viewblock.io/zilliqa/${type}/${identifier}`; if (network === "https://dev-api.zilliqa.com") viewBlockUrl += "?network=testnet"; return ( Open in ViewBlock} > ); }; export default ViewBlockLink;