import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { App, AppSkeleton, CookieBanner, ModalsContainer, useCheckLatestVersion, useSubscribeToVetraPackages, useSetSentryUser, createReactor, } from "@powerhousedao/connect";
import "../i18n/index.js";
import { lazy, StrictMode, Suspense } from "react";
export const Load = lazy(async () => {
    await createReactor();
    return {
        default: ({ children }) => {
            useSubscribeToVetraPackages();
            useSetSentryUser();
            useCheckLatestVersion();
            return children;
        },
    };
});
export const AppLoader = () => (_jsxs(StrictMode, { children: [_jsx(Suspense, { fallback: _jsx(AppSkeleton, {}), name: "AppLoader", children: _jsx(Load, { children: _jsx(App, {}) }) }), _jsx(Suspense, { name: "CookieBanner", children: _jsx(CookieBanner, {}) }), _jsx(ModalsContainer, {})] }));
//# sourceMappingURL=app-loader.js.map