Repository URL to install this package:
|
Version:
2.7.3 ▾
|
"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