/** * External dependencies */ import PropTypes from 'prop-types'; import classNames from 'classnames'; /** * Internal dependencies */ import Label from '../label'; import withComponentId from '../../hocs/with-component-id'; import './style.scss'; /** * Component used for 'Order by' selectors, which renders a label * and a { options.map( ( option ) => ( ) ) }

); }; OrderSelect.propTypes = { defaultValue: PropTypes.string, label: PropTypes.string, onChange: PropTypes.func, options: PropTypes.arrayOf( PropTypes.shape( { key: PropTypes.string.isRequired, label: PropTypes.string.isRequired, } ) ), readOnly: PropTypes.bool, screenReaderLabel: PropTypes.string, value: PropTypes.string, // from withComponentId componentId: PropTypes.number.isRequired, }; export default withComponentId( OrderSelect );