File size: 527 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { SelectDropdown } from '@automattic/components';
import PropTypes from 'prop-types';

const StatsModuleSelectDropdown = ( { initialSelected, options, onSelect = () => {} } ) => {
	return (
		<div className="stats-module__select-dropdown-wrapper">
			<SelectDropdown
				options={ options }
				onSelect={ onSelect }
				initialSelected={ initialSelected }
			/>
		</div>
	);
};

StatsModuleSelectDropdown.propTypes = {
	options: PropTypes.array,
	onSelect: PropTypes.func,
};

export default StatsModuleSelectDropdown;