import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PermissiondeniedComponent } from './components/permissiondenied/permissiondenied.component';
import { ContentComponent } from './shared/components/layout/content/content.component';
import { AuthGuard } from './shared/auth.guard';
import { Full_Content_Routes } from './shared/routes/full.routes';
import { FullComponent } from './shared/components/layout/full/full.component';

const routes: Routes = [
    // {
    //     path: '',
    //     redirectTo: 'dashboard',
    //     pathMatch: 'full'
    // },

    {
        path: '',
        component: FullComponent,
        children: [
            {
                path: '',
                component: ContentComponent,
                // canActivate: [AuthGuard],
                children: Full_Content_Routes,
            },
            {
                path: 'login',
                loadChildren: () => import('./components/authentication/authentication.module').then(m => m.AuthenticationModule)
            },
            // {
            //     path: 'permission-denied',
            //     component: PermissiondeniedComponent
            // },
            // {
            //     path: '**',
            //     redirectTo: 'admin'
            // },
        ]
    },
    // {
    //     path: '',
    //     component: ContentComponent,
    //     canActivate: [AuthGuard],
    //     children: Full_Content_Routes
    // },
    // {
    //     path: '**',
    //     redirectTo: 'admin'
    // },
];

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