@data-driven-forms/react-form-renderer
Version:
React Form Renderer. Data Driven Forms converts JSON form definitions into fully functional React forms.
9 lines • 399 B
JavaScript
import componentTypes from '../component-types';
var isSpecialType = function (componentType) {
return componentType === componentTypes.CHECKBOX || componentType === componentTypes.RADIO;
};
var assignSpecialType = function (componentType) {
return isSpecialType(componentType) ? componentType : undefined;
};
export default assignSpecialType;
//# sourceMappingURL=assign-special-type.js.map