import { useSessionStorage } from '@vueuse/core';
import { getPrefixStorage } from './storage';

const PopupManager = {
  zIndex: useSessionStorage(getPrefixStorage('zIndex'), 2000),
  nextZIndex() {
    return ++PopupManager.zIndex.value;
  }
};

export { PopupManager as default };
