Hook for getting the ethers signer of the connected wallet.
import { useSigner, Web3Button } from "@thirdweb-dev/react"; function App() { const signer = useSigner();}
function useSigner(): Signer | undefined;
let returnType: Signer | undefined;
Signer if wallet is connected, otherwise undefined .
Signer
undefined