react-code-dataset / wp-calypso /client /state /ui /selectors /get-selected-site-id.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
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;
}