"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("./createUserSettingsStore.js"),s=require("./UserSettingsStoreContext.js"),n=function(n){var i=n.userId,u=n.children,o=r.useRef(null);return o.current||(o.current=t.createUserSettingsStore({userId:i})),r.useEffect((function(){var e;null===(e=o.current)||void 0===e||e.getState().loadSettings()}),[]),e.jsx(s.UserSettingsStoreContext.Provider,{value:o.current,children:u})};n.displayName="UserSettingsStoreProvider",exports.UserSettingsStoreProvider=n;
//# sourceMappingURL=UserSettingsStoreProvider.js.map
