import type { RouteObject } from 'react-router'; import Home from './pages/Home'; import NotFound from './pages/NotFound'; import Login from "./features/authentication/pages/Login"; import Register from "./features/authentication/pages/Register"; import ForgotPassword from "./features/authentication/pages/ForgotPassword"; import ResetPassword from "./features/authentication/pages/ResetPassword"; import Profile from "./features/authentication/pages/Profile"; import ChangePassword from "./features/authentication/pages/ChangePassword"; import AuthenticationRoute from "./features/authentication/layouts/authenticationRouteLayout"; import PrivateRoute from "./features/authentication/layouts/privateRouteLayout"; import { ROUTES } from "./features/authentication/authenticationConfig"; import AccountSearch from "./pages/AccountSearch"; import AccountObjectDetail from "./pages/AccountObjectDetailPage"; import AuthAppLayout from "./features/authentication/layouts/AuthAppLayout"; export const routes: RouteObject[] = [ { path: "/", element: , children: [ { index: true, element: , handle: { showInNavigation: true, label: "Home" } }, { path: '*', element: }, { element: , children: [ { path: ROUTES.LOGIN.PATH, element: , handle: { showInNavigation: true, label: "Login", title: ROUTES.LOGIN.TITLE } }, { path: ROUTES.REGISTER.PATH, element: , handle: { showInNavigation: false, title: ROUTES.REGISTER.TITLE } }, { path: ROUTES.FORGOT_PASSWORD.PATH, element: , handle: { showInNavigation: false, title: ROUTES.FORGOT_PASSWORD.TITLE } }, { path: ROUTES.RESET_PASSWORD.PATH, element: , handle: { showInNavigation: false, title: ROUTES.RESET_PASSWORD.TITLE } } ] }, { element: , children: [ { path: ROUTES.PROFILE.PATH, element: , handle: { showInNavigation: true, label: "Profile", title: ROUTES.PROFILE.TITLE } }, { path: ROUTES.CHANGE_PASSWORD.PATH, element: , handle: { showInNavigation: false, title: ROUTES.CHANGE_PASSWORD.TITLE } } ] }, { path: "accounts/:recordId", element: }, { path: "accounts", element: } ] } ];