import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MainDashboardComponent } from '../../component/main-dashboard/main-dashboard.component';


const routes: Routes = [
  { path: 'dashboard', component: MainDashboardComponent },
     // children: [
      // {
      //   path: 'dashbord',
      //   // loadChildren: () => import('./controls/profile-control/profile-control.module').then(m => m.ProfileControlModule)
      // },
      // {
      //   path: 'report',
      //   loadChildren: () => import('./controls/report-control/report-control.module').then(m => m.ReportControlModule)
      // },
      // { path: '', redirectTo: 'profile', pathMatch: 'full' }
    // ]

  { path: '', redirectTo: 'dashboard', pathMatch: 'full' },
  { path: '**', redirectTo: 'dashboard' }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class MainControlRoutingModule { }
