import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export const Select: React.StatelessComponent = ({field, value, onChange, options, readOnly, clearable}) => ( ); Select.propTypes = { field: PropTypes.string, value: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, ]), onChange: PropTypes.func.isRequired, options: PropTypes.arrayOf(PropTypes.shape({ key: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, ]), label: PropTypes.string, })), readOnly: PropTypes.bool, clearable: PropTypes.bool, }; Select.defaultProps = { readOnly: false, clearable: false, };