import { Routes } from '@angular/router';
import { LoginComponent } from './pages/login/login.component';
import { SidebarComponent } from './components/sidebar/sidebar.component';
import { LayoutComponent } from './components/layout/layout.component';
import { HomeComponent } from './pages/home/home.component';
import { ConcesionesComponent } from './pages/concesiones/concesiones.component';
import { ActualizacionPdComponent } from './pages/actualizacion-pd/actualizacion-pd.component';
import { AjustePdComponent } from './pages/ajuste-pd/ajuste-pd.component';
import { ResumenComponent } from './pages/resumen/resumen.component';
import { UnidadInformacionComponent } from './pages/unidad-informacion/unidad-informacion.component';

export const routes: Routes = [
    { path: 'login', component: LoginComponent },
  
    {
      path: '',
      component: LayoutComponent,
      children: [
        { path: '', redirectTo: 'inicio', pathMatch: 'full' },
        { path: 'inicio', component: HomeComponent },
        { path: 'unidad-concesiones', component: ConcesionesComponent },
        { path: 'ct-actualizacion', component: ActualizacionPdComponent },
        { path: 'ct-ajuste', component: AjustePdComponent },
        { path: 'resumen', component: ResumenComponent },
        { path: 'unidad-informacion', component: UnidadInformacionComponent },
      ]
    },
    { path: '**', redirectTo: 'inicio' }
];
