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