Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@bmc/react-common / dist / security / withAuth.js
Size: Mime:
import React from 'react';
import Secure from './Secure';

var withAuth = function withAuth(Component) {
  var C = function C(props) {
    return React.createElement(Secure, {
      render: function render(secureComponentProps) {
        return React.createElement(Component, Object.assign({}, props, secureComponentProps));
      }
    });
  };

  C.displayName = "withAuth(".concat(Component.displayName || Component.name, ")");
  return C;
};

export default withAuth;
//# sourceMappingURL=withAuth.js.map