diff --git a/explorer/src/components/Navbar.tsx b/explorer/src/components/Navbar.tsx index 4817651f..a9012209 100644 --- a/explorer/src/components/Navbar.tsx +++ b/explorer/src/components/Navbar.tsx @@ -1,12 +1,17 @@ import { AppBar, Hidden, Button, Box, Link, Toolbar } from "@mui/material"; import React from "react"; import LogoLink from "./LogoLink"; +import { useNetworkContext } from "../contexts/NetworkContext"; const linkStyle = { ml: 3, textUnderlineOffset: 6 }; const linkActiveStyle = { textDecoration: "underline" }; -const NavBar = () => ( - { + const { activeNetwork } = useNetworkContext() + const bridgeLink = activeNetwork.name === 'mainnet' + ? "https://bridge.alephium.org" + : "https://testnet.bridge.alephium.org" + return ( ( ( menu */} - -); + ) +}; export default NavBar;