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