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 ( <>
{code && } ); } export const RootRoutes = [ { path: "/", element: , children: RootTabRoutes, }, ] as RouteObject[];