"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useViewTypeLayoutSync=function(t){var i=t.storeRef,r=t.viewType,s=t.isMobile,n=t.effectiveIsFilterExpanded,a=t.getEffectiveIsMapHidden;e.useEffect((function(){if(i.current)if(s)i.current.setState({isMapHidden:!0,isFilterExpanded:!1});else{var e=a();i.current.setState({isMapHidden:null!=e&&e,isFilterExpanded:null==n||n})}}),[r])};
//# sourceMappingURL=useViewTypeLayoutSync.js.map
