import{useEffect as e}from"react";var i=function(i){var n=i.storeRef,a=i.isMobileRef,r=i.onSettingChange;e((function(){if(n.current&&r)return n.current.subscribe((function(e,i){a.current||e.isMapHidden===i.isMapHidden||r("isMapHidden",e.isMapHidden),a.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)}))}),[n,a,r])};export{i as useViewStoreSettingsSync};
//# sourceMappingURL=useViewStoreSettingsSync.js.map
