import * as React from 'react';
import classnames from 'classnames';
var defaultProps = {
    prefixCls: 'ty-divider',
    type: 'horizontal',
    dashed: false,
    align: 'center',
};
var Divider = function (props) {
    var _a;
    var type = props.type, dashed = props.dashed, align = props.align, className = props.className, style = props.style, prefixCls = props.prefixCls, children = props.children;
    var cls = classnames(prefixCls, className, prefixCls + "_" + type, prefixCls + "_" + align, (_a = {},
        _a[prefixCls + "_" + type + "-dashed"] = dashed,
        _a[prefixCls + "_text"] = children,
        _a));
    return (React.createElement("div", { className: cls, style: style }, children && React.createElement("span", { className: prefixCls + "_inner-text" }, children)));
};
Divider.defaultProps = defaultProps;
export default Divider;
//# sourceMappingURL=index.js.map