text: import {
    UPDATE_ACTIVE_BOTTOM_TAB,
    TOAST_NOTIFICATION,
    HIDE_POSTS_THUMBNAILS,
    RC_OFFER,
    TOGGLE_ACCOUNTS_BOTTOM_SHEET,
  } from '../constants/constants';
  
  const initialState = {
    activeBottomTab: 'HomeTabbar',
    toastNotification: '',
    hidePostsThumbnails: false,
    rcOffer: false,
    isVisibleAccountsBottomSheet: false,
  };
  
  export default function (state = initialState, action) {
    switch (action.type) {
      case UPDATE_ACTIVE_BOTTOM_TAB:
        return {
          ...state,
          activeBottomTab: action.payload,
        };
  
      case TOAST_NOTIFICATION:
        return {
          ...state,
          toastNotification: action.payload,
        };
  
      case RC_OFFER:
        return {
          ...state,
          rcOffer: action.payload,
        };
  
      case HIDE_POSTS_THUMBNAILS:
        return {
          ...state,
          hidePostsThumbnails: action.payload,
        };
  
      case TOGGLE_ACCOUNTS_BOTTOM_SHEET:
        return {
          ...state,
          isVisibleAccountsBottomSheet: !state.isVisibleAccountsBottomSheet,
        };
      default:
        return state;
    }
  }
  