import React from 'react'; import PropTypes from 'prop-types'; import { TextInput, FormGroup } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import { helpLabel } from '../form/FormHelpers'; export const PurposeField = ({ isDisabled, purpose, setPurpose }) => ( { setPurpose(newPurpose); }} /> ); PurposeField.propTypes = { isDisabled: PropTypes.bool.isRequired, purpose: PropTypes.string.isRequired, setPurpose: PropTypes.func.isRequired, };