6 groupMembershipsReducer,
11 organizationKeyReducer,
13 organizationThemeSlice,
20 userInvitationsReducer,
24 vpnServersCountReducer,
26 } from '@proton/account';
27 import { featuresReducer } from '@proton/features';
33 importerConfigReducer,
35 } from '@proton/mail';
36 import { selectPersistModel } from '@proton/redux-utilities';
38 export const sharedReducers = {
43 ...addressKeysReducer,
44 inactiveKeys: inactiveKeysReducer,
45 ...userSettingsReducer,
46 ...mailSettingsReducer,
47 ...subscriptionReducer,
48 ...paymentStatusReducer,
49 ...organizationReducer,
50 ...organizationKeyReducer,
51 ...protonDomainsReducer,
53 organizationTheme: organizationThemeSlice.reducer,
54 ...userInvitationsReducer,
57 ...contactEmailsReducer,
59 ...importerConfigReducer,
60 ...vpnServersCountReducer,
61 ...welcomeFlagsReducer,
64 ...scheduleCallReducer,
66 ...groupMembersReducer,
67 ...groupMembershipsReducer,
68 securityCheckup: securityCheckupSlice.reducer,
69 features: featuresReducer.reducer,
72 export const sharedPersistReducer: Partial<{ [key in keyof typeof sharedReducers]: any }> = {
73 user: selectPersistModel,
74 addresses: selectPersistModel,
75 userSettings: selectPersistModel,
76 mailSettings: selectPersistModel,
77 subscription: selectPersistModel,
78 contacts: selectPersistModel,
79 contactEmails: selectPersistModel,
80 plans: selectPersistModel,
81 categories: selectPersistModel,
82 organization: selectPersistModel,
83 userInvitations: selectPersistModel,
84 vpnServersCount: selectPersistModel,
85 protonDomains: selectPersistModel,
86 domains: selectPersistModel,
87 features: (state: any) => state,