import 'package:satu/core/redux/actions/nav_actions.dart';
import 'package:satu/core/redux/actions/user_actions.dart';
import 'package:satu/core/redux/state/nav_state.dart';
import 'package:satu/core/redux/state/user_state.dart';

NavState navReducer(NavState prevState, SetNavStateAction action) {
  final NavState payload = action.navState;
  return prevState.copyWith(
    drawerViewClass: payload.drawerViewClass,
    selectedTabIndex: payload.selectedTabIndex,
  );
}
