import React from "react"; import { NavLink } from "react-router-dom"; type PlainAddressProps = { address: string; text: string | undefined; linkable: boolean; dontOverrideColors: boolean | undefined; }; const PlainAddress: React.FC = ({ address, text, linkable, dontOverrideColors, }) => { if (linkable) { return ( <>{text ?? address} ); } return ( {address} ); }; export default PlainAddress;