import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from 'src/app/shared/shared.module';
import { RouterModule, Routes } from '@angular/router';
import { CalendarsRouter } from './router/calendars-router';
import { CalendarsContainer } from './container/calendars/calendars.container';
import { CalendarSearchComponent } from './presenter/search/calendar-search/calendar-search.component';
import { CalendarListComponent } from './presenter/list/calendar-list/calendar-list.component';
import { CalendarDialogComponent } from './presenter/dialog/calendar-dialog/calendar-dialog.component';

const routes : Routes =[
    {
        path:'',
        component: CalendarsRouter,
        children:[
            {
                path:'',
                component: CalendarsContainer
            },
        ]
    }
]

@NgModule({
    declarations: [
        CalendarsRouter,
        CalendarsContainer,
        CalendarSearchComponent,
        CalendarListComponent,
        CalendarDialogComponent
        ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes)
    ]
})
export class CalendarsModule { }
