import 'package:aman_kassa_flutter/redux/actions/kassa_actions.dart';
import 'package:aman_kassa_flutter/redux/state/kassa_state.dart';

mainReducer(KassaState prevState, SetKassaStateAction action) {
  final payload = action.kassaState;
  return prevState.copyWith(
    bottomSheetElements: payload.bottomSheetElements,
    bottomSheetLoading: payload.bottomSheetLoading,
    prevCategories: payload.prevCategories,
    kassaItems: payload.kassaItems,
  );
}
