import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { LayoutPageComponent } from "./pages/layout-page/layout-page.component";
import { MainComponent } from "./pages/main/main.component";
import { BitagoraComponent } from "./bitagora/bitagora.component";
import { CalendarComponent } from "./calendar/calendar.component";
import { TareasComponent } from "./pages/tareas/tareas.component";




const routes: Routes = [
  {
    path: '', component: LayoutPageComponent, children: [
      { path: 'main', component: MainComponent },
      { path: 'bitacora', component: BitagoraComponent },
      { path: 'misTareas', component: TareasComponent },

      //     { path: 'misHijos', component: CardsHijosComponent },
      { path: 'calendar', component: CalendarComponent },
      //     {path:'registroAlumno', component: registroAlumnoComponent},
      //     {path:'registro', component: registroComponent},
      //     {path:'registroAd', component: RegistroAdComponent},
      //     {path:'circularHijo', component: CircularHijosComponent},

      { path: '', redirectTo: 'main', pathMatch: 'full' },
      { path: '**', redirectTo: '404' },

    ]
  },

];

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