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

UserState userReducer(UserState prevState, SetUserStateAction action) {
  final UserState payload = action.userState;
  return prevState.copyWith(
    isError: payload.isError,
    isLoading: payload.isLoading,
    auth: payload.auth,
  );
}