import { useWeb3React } from "@web3-react/core" ; import React from "react" ; export function Account ( ) { const { account } = useWeb3React ( ) ; return ( < div className = "btn btn-ghost btn-sm rounded-btn" > < span > Account < /span> < span role = "img" aria - label = "robot" > 🤖 < /span> < span > { account === null ? "-" : account ? `${ account . substring ( 0 , 6 ) }...${ account . substring ( account . length - 4 ) }` : "" } < /span> < /div>); }