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    
@skava/ui / dist / components / abstractions / B2B / Approval / ApprovalStatus / ApprovalStatus.js
Size: Mime:
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

const tslib_1 = require("tslib");

const react_1 = tslib_1.__importDefault(require("react"));

const styled_1 = require("./styled");

const renderProps_1 = require("./renderProps");

class ApprovalStatus extends react_1.default.PureComponent {
  render() {
    const _a = this.props,
          {
      renderButton,
      renderOrderInformation,
      renderUserInformation,
      renderWrapper
    } = _a,
          remainingProps = tslib_1.__rest(_a, ["renderButton", "renderOrderInformation", "renderUserInformation", "renderWrapper"]);

    const children = react_1.default.createElement(react_1.default.Fragment, null, react_1.default.createElement(styled_1.UserInformation, null, renderUserInformation(remainingProps)), react_1.default.createElement(styled_1.OrderInformation, null, renderOrderInformation(remainingProps)), react_1.default.createElement(styled_1.StyledToggleButton, null, renderButton(remainingProps)));
    return renderWrapper(Object.assign({
      children
    }, remainingProps));
  }

}

ApprovalStatus.defaultProps = {
  className: '',
  // renderProps
  renderOrderInformation: renderProps_1.defaultRenderOrderInformation,
  renderUserInformation: renderProps_1.defaultRenderUserInformation,
  renderButton: renderProps_1.defaultRenderButton,
  renderWrapper: renderProps_1.defaultRenderWrapper
};
exports.ApprovalStatus = ApprovalStatus;
exports.default = ApprovalStatus; //# sourceMappingURL=ApprovalStatus.js.map