import { useLocalStore } from 'mobx-react-lite';
export default function useStore() {
  return useLocalStore(function () {
    return {
      optionMap: [],
      oldOptionsData: null,
      setOptionMap: function setOptionMap(data) {
        this.optionMap = data;
      },
      setOldOptionsData: function setOldOptionsData(data) {
        this.oldOptionsData = data;
      },

      get getOptionMap() {
        return this.optionMap;
      },

      get getOldOptionsData() {
        return this.oldOptionsData;
      }

    };
  });
}