diff options
Diffstat (limited to 'plugins/jetpack/jetpack_vendor/automattic/jetpack-wordads/src/dashboard/store/selectors/jetpack-settings.js')
-rw-r--r-- | plugins/jetpack/jetpack_vendor/automattic/jetpack-wordads/src/dashboard/store/selectors/jetpack-settings.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/jetpack/jetpack_vendor/automattic/jetpack-wordads/src/dashboard/store/selectors/jetpack-settings.js b/plugins/jetpack/jetpack_vendor/automattic/jetpack-wordads/src/dashboard/store/selectors/jetpack-settings.js new file mode 100644 index 00000000..546a5c67 --- /dev/null +++ b/plugins/jetpack/jetpack_vendor/automattic/jetpack-wordads/src/dashboard/store/selectors/jetpack-settings.js @@ -0,0 +1,10 @@ +const jetpackSettingSelectors = { + getWordAdsModuleStatus: state => state.jetpackSettings, + isModuleEnabled: state => state.jetpackSettings.module_active, + isInstantSearchEnabled: state => state.jetpackSettings.instant_search_enabled, + isUpdatingJetpackSettings: state => state.jetpackSettings.is_updating, + isTogglingModule: state => state.jetpackSettings.is_toggling_module, + isTogglingInstantSearch: state => state.jetpackSettings.is_toggling_instant_search, +}; + +export default jetpackSettingSelectors; |