import{jsx as r}from"react/jsx-runtime";import{useRef as e,useEffect as t}from"react";import{createUserSettingsStore as n}from"./createUserSettingsStore.js";import{UserSettingsStoreContext as o}from"./UserSettingsStoreContext.js";var i=function(i){var s=i.userId,u=i.children,a=e(null);return a.current||(a.current=n({userId:s})),t((function(){var r;null===(r=a.current)||void 0===r||r.getState().loadSettings()}),[]),r(o.Provider,{value:a.current,children:u})};i.displayName="UserSettingsStoreProvider";export{i as UserSettingsStoreProvider};
//# sourceMappingURL=UserSettingsStoreProvider.js.map
