"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useViewStoreSettingsSync=function(i){var t=i.storeRef,n=i.isMobileRef,r=i.onSettingChange;e.useEffect((function(){if(t.current&&r)return t.current.subscribe((function(e,i){n.current||e.isMapHidden===i.isMapHidden||r("isMapHidden",e.isMapHidden),n.current||e.isFilterExpanded===i.isFilterExpanded||r("isFilterExpanded",e.isFilterExpanded),e.isWellNameExpand!==i.isWellNameExpand&&r("isWellNameExpand",e.isWellNameExpand),e.mapStyle!==i.mapStyle&&r("mapStyle",e.mapStyle)}))}),[t,n,r])};
//# sourceMappingURL=useViewStoreSettingsSync.js.map
