import { fetchStewardBroadcastAndProducts } from "../../../features/steward/services/handle-fetch-steward-products";
import { stewardGetVBroadcastInfo } from "../../../features/steward/services/steward-get-distributions-info";

export const stewardExtraReducer = {
  [stewardGetVBroadcastInfo.fulfilled]: (state, { payload }) => {
    state.pending = false;
    state.distributionInfo = payload.data;
  },
  [fetchStewardBroadcastAndProducts.fulfilled]: (state, { payload }) => {
    state.stewardProducts = payload.productsData;
    state.distributionInfo = payload.broadcastData;
  },
};
