import type { RouteObject } from 'react-router'; import { lazyPage } from '../../app/lazyPage'; /** Routes of W1's accounts, relative to /app (inside the shell). */ export const accountsRoutes: RouteObject[] = [ { path: 'accounts/new', ...lazyPage(() => import('./AccountEditorPage')) }, { path: 'accounts/:id', ...lazyPage(() => import('./AccountDetailPage')) }, { path: 'accounts/:id/edit', ...lazyPage(() => import('./AccountEditorPage')) }, ];