import { ethers } from "ethers"; import { NavLink } from "react-router-dom"; import { blockURL } from "../url"; type NavButtonProps = { blockNum: number; disabled?: boolean; urlBuilder?: (blockNumber: ethers.providers.BlockTag) => string; }; const NavButton: React.FC = ({ blockNum, disabled, urlBuilder, children, }) => { if (disabled) { return ( {children} ); } return ( {children} ); }; export default NavButton;