- {minerAddress !== undefined && minerAddress === address && (
-
-
-
- )}
+ <>
{address === selectedAddress ? (
<>
{ensName ? (
@@ -38,11 +31,11 @@ const AddressOrENSName: React.FC
= ({
{ensName ? (
) : (
-
+
)}
>
)}
-
+ >
);
export default React.memo(AddressOrENSName);
diff --git a/src/components/DecoratedAddressLink.tsx b/src/components/DecoratedAddressLink.tsx
new file mode 100644
index 0000000..7f897b2
--- /dev/null
+++ b/src/components/DecoratedAddressLink.tsx
@@ -0,0 +1,62 @@
+import React from "react";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import {
+ faMoneyBillAlt,
+ faBurn,
+ faCoins,
+} from "@fortawesome/free-solid-svg-icons";
+import AddressOrENSName from "./AddressOrENSName";
+import { AddressContext, ZERO_ADDRESS } from "../types";
+
+type DecoratedAddressLinkProps = {
+ address: string;
+ ensName?: string;
+ selectedAddress?: string;
+ text?: string;
+ addressCtx?: AddressContext;
+ miner?: boolean;
+};
+
+const DecoratedAddresssLink: React.FC