import { auctionGetAuctions } from "../../../features/auction/services/auction-get-auctions";
import { auctionSlaughterRequests } from "../../../features/auction/services/auction-slaughter-requests";

export const auctionExtraReducers = {
  [auctionSlaughterRequests.fulfilled]: (state, { payload }) => {
    state.auctionSlaughterRequestsData = payload.data;
    state.pending = false;
  },
  [auctionSlaughterRequests.pending]: (state) => {
    state.pending = true;
  },
  [auctionGetAuctions.fulfilled]: (state, { payload }) => {
    state.auctions = payload.data;
    state.pending = false;
  },
  [auctionGetAuctions.pending]: (state) => {
    state.pending = true;
  },
};
