useMetaMaskWallet

const connect = useMetaMaskWallet(); connect();

Returns

connect function to connect to the MetaMask wallet