import { ygopro } from "@/api";
import { setResult } from "@/reducers/duel/mod";
import { AppDispatch } from "@/store";

export default (win: ygopro.StocGameMessage.MsgWin, dispatch: AppDispatch) => {
  dispatch(setResult(win.type_));
};
