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

SellState sellReducer(SellState prevState, SetSellStateAction action) {
  final SellState payload = action.sellState;
  return prevState.copyWith(
    items: payload.items,
    transactionState: payload.transactionState
  );
}