Download wp-calypso/client/state/ui/selectors/get-selected-site-id.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 218 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/selectors/get-selected-site-id.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/selectors/get-selected-site-id.js
-
curl -L -o get-selected-site-id.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/selectors/get-selected-site-id.js
218 Bytes
| import 'calypso/state/ui/init'; | |
| /** | |
| * Returns the currently selected site ID. | |
| * @returns {?number} Selected site ID | |
| */ | |
| export default function getSelectedSiteId( state ) { | |
| return state.ui?.selectedSiteId; | |
| } | |