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


userReducer(UserState prevState, SetUserStateAction action) {
  final payload = action.userState;
  return prevState.copyWith(
    isError: payload.isError,
    isLoading: payload.isLoading,
    user: payload.user,
    isAuthenticated: payload.isAuthenticated,
    loginFormMessage: payload.loginFormMessage,
    smena: payload.smena,
    money: payload.money,
    password: payload.password,
    login: payload.login,
    authenticateType: payload.authenticateType,
  );
}