import {RouterModule, Routes} from '@angular/router';

import {UserComponent} from './user.component/user.component';

const USER_ROUTES: Routes = [
  {
    path: '',
    component: UserComponent,

    children: [
      {
        path: 'user-welcome',
        loadComponent: () => import('../user-module/user-welcome.component/user-welcome.component').then((c) => c.UserWelcomeComponent),
      },
      {
        path: 'tutorials-list',
        loadComponent: () => import('../user-module/tutorials-list.component/tutorials-list.component').then((c) => c.TutorialsListComponent)
      },
      {
        path: 'ai-models',
        loadComponent: () => import('../user-module/ai-models.component/ai-models.component').then((c) => c.AiModelsComponent)
      }
    ]
  }
];

export const userRouting = RouterModule.forChild(USER_ROUTES);
