import { lazy } from "react"; import { Outlet, RouteObject } from "react-router-dom"; import { RootTabRoutes } from "@/Pages/Root/RootTabRoutes"; import { getCurrentRefCode } from "@/Utils"; const InviteModal = lazy(() => import("@/Components/Invite")); export default function RootPage() { const code = getCurrentRefCode(); return ( <>