import React from "react"; import { ethers } from "ethers"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faChevronLeft, faChevronRight, } from "@fortawesome/free-solid-svg-icons"; import NavButton from "./NavButton"; type NavBlockProps = { blockNumber: number; latestBlockNumber: number | undefined; urlBuilder?: (blockNumber: ethers.providers.BlockTag) => string; }; const NavBlock: React.FC = ({ blockNumber, latestBlockNumber, urlBuilder, }) => (
= latestBlockNumber } urlBuilder={urlBuilder} > = latestBlockNumber } urlBuilder={urlBuilder} >
); export default React.memo(NavBlock);