text: import storage from 'redux-persist/lib/storage';
  import { persistReducer } from 'redux-persist';
  
  export default reducers => {
    const persistedReducer = persistReducer(
      {
        key: 'brotaapp',
        storage,
        whitelist: ['auth', 'user'],
      },
      reducers
    );
    return persistedReducer;
  };
  