import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { App, AppSkeleton, CookieBanner, ModalsContainer, } from "@powerhousedao/connect/components";
import { useCheckLatestVersion } from "@powerhousedao/connect/hooks";
import "@powerhousedao/connect/i18n";
import { useSubscribeToVetraPackages } from "@powerhousedao/connect/services";
import { createReactor, useSetSentryUser } from "@powerhousedao/connect/store";
import { lazy, StrictMode, Suspense } from "react";
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