1 import isTruthy from '@proton/utils/isTruthy';
3 export const getPersistedState = <T extends object, K extends keyof T>(
5 persistReducer: Partial<{ [key in K]: (value: any) => any }>
10 .map(([key, value]) => {
11 const transformedValue = persistReducer[key as keyof typeof persistReducer]?.(value);
12 return transformedValue ? [key, transformedValue] : undefined;
17 if (key === 'fetchedEphemeral') {