"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.FormItemPrefixContext = exports.FormItemContext = exports.FormContext = exports.FormProvider = void 0;

var _react = _interopRequireDefault(require("react"));

var _omit = _interopRequireDefault(require("../components/rc-util/omit"));

var _rcFieldForm = require("../components/rc-field-form");

var FormProvider = function FormProvider(props) {
  var providerProps = (0, _omit.default)(props, ['prefixCls']);
  return /*#__PURE__*/_react.default.createElement(_rcFieldForm.FormProvider, Object.assign({}, providerProps));
};

exports.FormProvider = FormProvider;

var FormContext = /*#__PURE__*/_react.default.createContext({// labelAlign: 'right',
  // vertical: false,
  // itemRef: (() => {}) as any,
});

exports.FormContext = FormContext;

var FormItemContext = /*#__PURE__*/_react.default.createContext({
  updateItemErrors: function updateItemErrors() {}
});

exports.FormItemContext = FormItemContext;

var FormItemPrefixContext = /*#__PURE__*/_react.default.createContext({
  prefixCls: ''
});

exports.FormItemPrefixContext = FormItemPrefixContext;