Download wp-calypso/client/my-sites/stats/stats-module/select-dropdown.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/stats/stats-module/select-dropdown.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/stats/stats-module/select-dropdown.jsx
-
curl -L -o select-dropdown.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/stats/stats-module/select-dropdown.jsx
527 Bytes
| 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; | |