import { lazy } from 'solid-js'; import type { RouteDefinition } from '@solidjs/router'; export const routes: RouteDefinition[] = [ { path: '/auth/login', component: lazy(() => import('./routes/auth/login')), }, { path: '/', component: lazy(() => import('./routes/(shell)/_layout')), children: [ { path: '/', component: lazy(() => import('./routes/(shell)/index')), }, { path: '/forms', component: lazy(() => import('./routes/(shell)/forms')), }, { path: '/data', component: lazy(() => import('./routes/(shell)/data')), }, { path: '/modals', component: lazy(() => import('./routes/(shell)/modals')), }, { path: '/layout', component: lazy(() => import('./routes/(shell)/layout')), }, { path: '*', component: lazy(() => import('./routes/(shell)/_404')), }, ], }, ];