import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { ThemeProvider, ToastProvider } from "@vertesia/ui/core";
import { UserPermissionProvider } from "@vertesia/ui/features";
import { UserSessionProvider } from "@vertesia/ui/session";
import { SplashScreen } from "./SplashScreen";
import { SigninScreen } from "./login/SigninScreen";
export function VertesiaShell({ children, lightLogo, darkLogo, loadingIcon }) {
    return (_jsx(ToastProvider, { children: _jsx(UserSessionProvider, { children: _jsxs(ThemeProvider, { defaultTheme: "system", storageKey: "vite-ui-theme", children: [_jsx(SplashScreen, { icon: loadingIcon }), _jsx(SigninScreen, { allowedPrefix: "/shared/", lightLogo: lightLogo, darkLogo: darkLogo }), _jsx(UserPermissionProvider, { children: children })] }) }) }));
}
//# sourceMappingURL=VertesiaShell.js.map