"use strict";var e=require("@babel/runtime/helpers/slicedToArray"),r=require("react");require("../utils/index.js");var t=require("../utils/sharedDCStore.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=u(e);module.exports=function(e){var u=r.useState(t.sharedDCStore.getSharedDCStore(e)),s=a.default(u,2),o=s[0],i=s[1];return r.useEffect((function(){return t.sharedDCStore.subscribeForSharedDCStore(e,i)}),[]),[o,r.useCallback((function(r){return t.sharedDCStore.setSharedDCStore(e,r)}),[e])]};
//# sourceMappingURL=useSharedDCStore.js.map
