import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import deprecate from 'util-deprecate';
import { setLegacyMode } from '../../legacyMode';
var formgroupType = deprecate(function (config) {
  setLegacyMode();
  return _objectSpread(_objectSpread({}, config), {}, {
    type: 'formGroup'
  });
}, 'type "formgroup" is deprecated. Use "formGroup" instead.');
export default (function (config) {
  if (config.type === 'formgroup') {
    config = formgroupType(config);
  }

  return config;
});
//# sourceMappingURL=formgroupType.js.map