import React from 'react';
import classnames from 'classnames';
var generator = function (type, defaultPrefixCls) {
    var Component = function (props) {
        var prefixCls = props.prefixCls, className = props.className, style = props.style, children = props.children;
        var cls = classnames(prefixCls, className);
        return React.createElement(type, {
            style: style,
            className: cls,
            children: children,
        });
    };
    Component.defaultProps = {
        prefixCls: defaultPrefixCls,
    };
    return Component;
};
var H1 = generator('h1', 'ty-h1');
var H2 = generator('h2', 'ty-h2');
var H3 = generator('h3', 'ty-h3');
var H4 = generator('h4', 'ty-h4');
var H5 = generator('h5', 'ty-h5');
var H6 = generator('h6', 'ty-h6');
var P = generator('p', 'ty-p');
var Typography = { H1: H1, H2: H2, H3: H3, H4: H4, H5: H5, H6: H6, P: P };
export default Typography;
//# sourceMappingURL=index.js.map