import {RouterModule, Routes} from '@angular/router';
import {AdminComponent} from './admin.component/admin.component';

const ADMIN_ROUTES: Routes = [
  {
    path: '',
    component: AdminComponent,

     children: [
       {
         path: 'welcome',
         loadComponent: () => import('../admin-module/admin-welcome.component/admin-welcome.component').then((c) => c.AdminWelcomeComponent),
       },
       {
         path: 'settings',
        loadComponent: () => import('../admin-module/settings.component/settings.component').then((c) => c.SettingsComponent)
      },
       {
         path: 'system',

        loadComponent: () => import('../admin-module/system.component/system.component').then((c) => c.SystemComponent)
      }
    ]
  }
];

export const adminRouting = RouterModule.forChild(ADMIN_ROUTES);
