import React from "react"; import { BigNumber } from "ethers"; import { formatValue } from "./formatter"; type TransactionValueProps = { value: BigNumber; decimals?: number; }; const TransactionValue: React.FC = ({ value, decimals = 18, }) => { const formattedValue = formatValue(value, decimals); return ( {formattedValue} Ether ); }; export default React.memo(TransactionValue);