import React from 'react'; import PropTypes from 'prop-types'; import { Input, InputLabelWrapper } from '../'; const InputText = ({ id, label, isSortable, sortDirection, onLabelClick, value, onChange, }) => { return ( { onChange(event.target.value); }} /> ); }; InputText.defaultProps = { value: '', isSortable: false, onLabelClick: () => {}, sortDirection: 'none', }; InputText.propTypes = { id: PropTypes.string, label: PropTypes.string.isRequired, isSortable: PropTypes.bool, sortDirection: PropTypes.oneOf(['ascending', 'descending', 'none']), onLabelClick: PropTypes.func, value: PropTypes.any, onChange: PropTypes.func.isRequired, }; export default InputText;