/**
 * Copyright (c) 2016 - 2022 Alex Grant (@localnerve), LocalNerve LLC
 * Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms.
 *
 * Specific tests and helpers for settings
 */
export function getSettingsFields (context, SettingsStore) {
  const settingsStore = context.getStore(SettingsStore);
  return {
    hasServiceWorker: settingsStore.getHasServiceWorker(),
    hasPushMessaging: settingsStore.getHasPushMessaging(),
    hasPermissions: settingsStore.getHasPermissions(),
    hasNotifications: settingsStore.getHasNotifications(),
    pushBlocked: settingsStore.getPushBlocked(),
    syncBlocked: settingsStore.getSyncBlocked(),
    pushSubscription: settingsStore.getPushSubscription(),
    pushSubscriptionError: settingsStore.getPushSubscriptionError(),
    pushTopics: settingsStore.getPushTopics(),
    pushTopicsError: settingsStore.getPushTopicsError(),
    transition: settingsStore.getTransition()
  };
}
