code: function getGatewayUrl (config) {
    if (!config.Addresses) {
      return
    }
  
    if (!config.Addresses.Gateway) {
      return false
    }
  
    const addr = multiaddr(config.Addresses.Gateway)
  
    // We need an address of the format /ip4/127.0.0.1/tcp/8080
    const protos = addr.protoNames()
    if (protos[0] !== 'ip4' || protos[1] !== 'tcp') {
      return false
    }
  
    const {address, port} = addr.nodeAddress()
    return `http://${address}:${port}`
  }
docs: import shouldPureComponentUpdate from '../utils/pure'