Download wp-calypso/client/state/selectors/get-atomic-hosting-geo-affinity.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-atomic-hosting-geo-affinity.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/selectors/get-atomic-hosting-geo-affinity.js
-
curl -L -o get-atomic-hosting-geo-affinity.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-atomic-hosting-geo-affinity.js
376 Bytes
| import 'calypso/state/hosting/init'; | |
| /** | |
| * Returns the geo affinity used for given siteId | |
| * @param {Object} state Global state tree | |
| * @param {number|null} siteId The ID of the site we're querying | |
| * @returns {string} Geo Affinity, or '' | |
| */ | |
| export function getAtomicHostingGeoAffinity( state, siteId ) { | |
| return state.atomicHosting?.[ siteId ]?.geoAffinity ?? ''; | |
| } | |