import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { PageHomeComponent } from './page-home/page-home.component';
import { PageTextbookComponent } from "./page-textbook/page-textbook.component";
const routes: Routes = [
  {
    path: 'home',
    component: PageHomeComponent,
    children:[
      // {
      //   path: "",
      //   redirectTo: "pay",
      //   pathMatch: "full",
      // },
    ]
  },
  {
    path: 'textbook',
    component: PageHomeComponent,
    children:[
      {
        path: "list",
        component:PageTextbookComponent
        // loadComponent(import("./page-textbook/page-textbook.component").then(m=>m.PageTextbookComponent))
      },
    ]
  }
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class NavAuthorRoutingModule {}
