summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/jetpack_vendor/automattic/jetpack-wordads/src/dashboard/store/selectors/site-data.js')
-rw-r--r--plugins/jetpack/jetpack_vendor/automattic/jetpack-wordads/src/dashboard/store/selectors/site-data.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/jetpack/jetpack_vendor/automattic/jetpack-wordads/src/dashboard/store/selectors/site-data.js b/plugins/jetpack/jetpack_vendor/automattic/jetpack-wordads/src/dashboard/store/selectors/site-data.js
new file mode 100644
index 00000000..6bd46a8a
--- /dev/null
+++ b/plugins/jetpack/jetpack_vendor/automattic/jetpack-wordads/src/dashboard/store/selectors/site-data.js
@@ -0,0 +1,11 @@
+const siteDataSelectors = {
+ getAPIRootUrl: state => state.siteData?.WP_API_root ?? null,
+ getAPINonce: state => state.siteData?.WP_API_nonce ?? null,
+ getRegistrationNonce: state => state.siteData?.registrationNonce ?? null,
+ getSiteAdminUrl: state => state.siteData?.adminUrl ?? null,
+ getBlogId: state => state.siteData?.blogId ?? 0,
+ getVersion: state => state.siteData?.version ?? 'development',
+ getCalypsoSlug: state => state.siteData?.calypsoSlug,
+};
+
+export default siteDataSelectors;