import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import FormComponent from "./FormComponent.jsx";
class FormGroup extends PureComponent {
render() {
return (
{this.props.name === 'default' ? null :
{this.props.label}
}
{this.props.fields.map(field => )}
)
}
}
FormGroup.propTypes = {
name: PropTypes.string,
label: PropTypes.string,
order: PropTypes.number,
fields: PropTypes.array,
updateCurrentValues: PropTypes.func
}
export default FormGroup;