import { Bridge } from '@synapsecns/widget' import { useEthereumWallet } from '../hooks/useEthereumWallet' const WidgetExampleClient = () => { const { connectedAddress, connectedNetwork, error, hasInjectedWallet, isInitializing, web3Provider, } = useEthereumWallet() if (isInitializing) { return (
Initializing the injected provider for the bridge widget.
Install or enable an injected Ethereum wallet such as MetaMask, then reload the page to render the widget.
{error ?? 'The widget is waiting for a usable browser wallet.'}