Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/core/hooks/useSessionState",["module","exports","require","liferay!frontend-js-react-web$react","../../app/utils/isNullOrUndefined"],(function(e,t,r){var o;window;Object.defineProperty(t,"__esModule",{value:!0}),t.useSessionState=function(e,t){const[r,o]=(0,s.useState)((()=>{const r=window.sessionStorage.getItem(e);try{const e=JSON.parse(r);if(!(0,n.default)(e))return e}catch(e){}return t})),a=(0,s.useCallback)((t=>{o(t),(0,n.default)(t)?window.sessionStorage.removeItem(e):window.sessionStorage.setItem(e,JSON.stringify(t))}),[e]);return[r,a]};var s=r("liferay!frontend-js-react-web$react"),n=(o=r("../../app/utils/isNullOrUndefined"))&&o.__esModule?o:{default:o}}));
//# sourceMappingURL=useSessionState.js.map