import { useWalletConnect } from './useWalletConnect' ; export const withWalletConnect = ( Component , autoKill = true ) => ( ownProps ) => { const useWalletConnectProps = useWalletConnect ( autoKill ) ; return < Component { ... ownProps } useWalletConnectProps = { useWalletConnectProps } / > ; } ;