"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const react = require("react");
const useIDPStateStore = () => {
  return {
    get: react.useCallback(() => {
      const item = sessionStorage.getItem("idp");
      if (!item) {
        return null;
      }
      return JSON.parse(item);
    }, []),
    set: react.useCallback((state) => {
      sessionStorage.setItem("idp", JSON.stringify(state));
    }, [])
  };
};
exports.useIDPStateStore = useIDPStateStore;
//# sourceMappingURL=useIDPStateStore.cjs.map
