import { ReorderModeState } from './ReorderModeState';
import { runInAction } from 'mobx';
export function setReorderModeState(toolbar) {
    runInAction(() => {
        if (!toolbar._dnd) {
            return;
        }
        toolbar._dnd.reorderModeState ??= new ReorderModeState({
            toolbar,
            container: toolbar.container,
            closeSidePanel: toolbar.closeSidePanel,
        });
    });
}
//# sourceMappingURL=initReordeModeState.js.map