import React from "react"; import { NavLink } from "react-router-dom"; type UndefinedPageButtonProps = { address: string; direction: "first" | "last" | "prev" | "next"; hash?: string; disabled?: boolean; }; const UndefinedPageButton: React.FC = ({ address, direction, hash, disabled, children, }) => { if (disabled) { return ( {children} ); } return ( {children} ); }; export default UndefinedPageButton;