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 AntdForm from "antd/es/form";
import "antd/es/form/style";
var Item = AntdForm.Item,
    create = AntdForm.create,
    createFormField = AntdForm.createFormField;

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

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

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

    _createClass(Form, [{
        key: "render",
        value: function render() {
            return React.createElement(AntdForm, this.props);
        }
    }]);

    return Form;
}(Component);

export default Form;

Form.Item = Item;
Form.create = create;
Form.createFormField = createFormField;