"use strict";

exports.__esModule = true;
exports.setReorderModeState = setReorderModeState;
var _ReorderModeState = require("./ReorderModeState");
var _mobx = require("mobx");
function setReorderModeState(toolbar) {
  (0, _mobx.runInAction)(() => {
    var _toolbar$_dnd;
    if (!toolbar._dnd) {
      return;
    }
    (_toolbar$_dnd = toolbar._dnd).reorderModeState ?? (_toolbar$_dnd.reorderModeState = new _ReorderModeState.ReorderModeState({
      toolbar,
      container: toolbar.container,
      closeSidePanel: toolbar.closeSidePanel
    }));
  });
}
//# sourceMappingURL=initReordeModeState.js.map