import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PageTextbookComponent } from './components/page-textbook/page-textbook.component';
import { ApplyComponent } from './apply/apply.component';
// import { ProfileComponent } from '../user/profile/profile.component';
import { SpaceComponent } from './space/space.component'
import { TextbookDetailsComponent } from './textbook-details/textbook-details.component'
import { RecycleComponent } from './recycle/recycle.component'
const routes: Routes = [
  {
    path: '',
    redirectTo:'manage/space',
    pathMatch: "full",
  },
  {
    path: 'manage',
    children: [
      {
        path: 'space',//创建教材
        component: SpaceComponent,
      },
      {
        path: 'apply',//创建教材
        component: ApplyComponent,
      },
      {
        path: 'dateils',//创建教材
        component: TextbookDetailsComponent,
      },
      // {
      //   path: 'textbook',//列表
      //   component: PageTextbookComponent,
      // },
      {
        path: 'recycle',//回收站
        component: RecycleComponent,
      },
    ],
  },
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class NavAuthorRoutingModule {}
