import { ygopro } from "@/api";
import { updateHandsMeta } from "@/reducers/duel/handsSlice";
import { AppDispatch } from "@/store";
import MsgShuffleHand = ygopro.StocGameMessage.MsgShuffleHand;

export default (shuffleHand: MsgShuffleHand, dispatch: AppDispatch) => {
  dispatch(
    updateHandsMeta({ controler: shuffleHand.player, codes: shuffleHand.hands })
  );
};
