import _classCallCheck from "babel-runtime/helpers/classCallCheck";
import _createClass from "babel-runtime/helpers/createClass";
import _possibleConstructorReturn from "babel-runtime/helpers/possibleConstructorReturn";
import _inherits from "babel-runtime/helpers/inherits";
import React, { Component } from "react";
import AntdTypography from "antd/es/typography";
import "antd/es/typography/style";
var Text = AntdTypography.Text,
    Title = AntdTypography.Title,
    Paragraph = AntdTypography.Paragraph;

var Typography = function (_Component) {
    _inherits(Typography, _Component);

    function Typography() {
        _classCallCheck(this, Typography);

        return _possibleConstructorReturn(this, (Typography.__proto__ || Object.getPrototypeOf(Typography)).apply(this, arguments));
    }

    _createClass(Typography, [{
        key: "render",
        value: function render() {
            var children = this.props.children;

            return React.createElement(
                AntdTypography,
                this.props,
                children
            );
        }
    }]);

    return Typography;
}(Component);

export default Typography;

Typography.Text = Text;
Typography.Title = Title;
Typography.Paragraph = Paragraph;