import React from 'react'; import { FormGroup, FormSelect, FormSelectOption, GridItem, } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import PropTypes from 'prop-types'; const FormField = ({ label, id, value, items, onChange, isDisabled, }) => ( onChange(v)} className="without_select2" isDisabled={isDisabled} id={`${id}_select`} isRequired > {items.map(item => ( ))} ); FormField.propTypes = { label: PropTypes.string.isRequired, id: PropTypes.string.isRequired, value: PropTypes.string.isRequired, items: PropTypes.arrayOf(PropTypes.shape({})).isRequired, onChange: PropTypes.func.isRequired, isDisabled: PropTypes.bool.isRequired, }; export default FormField;