import type { RouteObject } from "react-router"; import LandingPage from "./pages"; import { lazy } from "react"; const LoginPage = lazy(() => import("./pages/login")); const RegisterPage = lazy(() => import("./pages/register")); const ProtectedLayout = lazy(() => import("./pages/protected-layout")); const DashboardPage = lazy(() => import("./pages/dashboard/index")); const TransactionsPage = lazy(() => import("./pages/dashboard/transactions")); const CategoriesPage = lazy(() => import("./pages/dashboard/categories")); const BudgetsPage = lazy(() => import("./pages/dashboard/budgets")); const GoalsPage = lazy(() => import("./pages/dashboard/goals")); const RecommendationsPage = lazy( () => import("./pages/dashboard/recommendations"), ); const AnalyticsPage = lazy(() => import("./pages/dashboard/analytics")); const SettingsPage = lazy(() => import("./pages/dashboard/settings")); export const routes: RouteObject[] = [ { element: , path: "/", }, { element: , path: "/auth/login", }, { element: , path: "/auth/register", }, { path: "/dashboard", element: , children: [ { index: true, element: }, { path: "transactions", element: }, { path: "categories", element: }, { path: "budgets", element: }, { path: "goals", element: }, { path: "recommendations", element: }, { path: "analytics", element: }, { path: "settings", element: }, ], }, ]; export default routes;