File size: 376 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 |
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 ?? '';
}
|