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 / atoms / Separator / Separator.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 MaterialIcon_1 = require("../MaterialIcon");

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

class Separator extends react_1.default.PureComponent {
  render() {
    const {
      arrow,
      pipe,
      children,
      className
    } = this.props; // <ArrowIcon />

    const child = children ? children : arrow ? react_1.default.createElement(MaterialIcon_1.MaterialIcon, {
      type: "right"
    }) : '|';
    return react_1.default.createElement(styled_1.StyledSeparator, {
      arrow: arrow,
      className: className
    }, child);
  }

}

Separator.defaultProps = {
  arrow: false,
  pipe: true,
  className: ''
};
exports.Separator = Separator;
exports.default = Separator; //# sourceMappingURL=Separator.js.map