import React from 'react'; import { TextInput, TextArea, FormGroup, FormSelect, FormSelectOption, } from '@patternfly/react-core'; const withFormGroup = Component => componentProps => { const { validation, ...rest } = componentProps; return ( ); }; export const SelectField = componentProps => { const { selectItems, ...rest } = componentProps; return ( {selectItems.map(item => ( ))} ); }; export const TextInputField = withFormGroup(TextInput); export const TextAreaField = withFormGroup(TextArea);