import React from 'react';
import classnames from 'classnames';
import FormItem from './form-item';
import FormStoreContext from './form-store-context';
import FormStore from './form-store';
var defaultProps = {
    prefixCls: 'ty-form',
};
var Form = function (props) {
    var store = props.store, onSubmit = props.onSubmit, prefixCls = props.prefixCls, className = props.className, style = props.style, children = props.children;
    var cls = classnames(prefixCls, className);
    return (React.createElement(FormStoreContext.Provider, { value: store },
        React.createElement("form", { className: cls, style: style, onSubmit: onSubmit }, children)));
};
Form.defaultProps = defaultProps;
Form.Item = FormItem;
Form.FormStore = FormStore;
export default Form;
//# sourceMappingURL=index.js.map