import { SharedModule } from './../shared/shared.module';
import { ExternalEventsComponent } from './external-events/external-events.component';
import { ExternalPageService } from './../shared/external-page.service';
import { ExternalPageRoutingModule } from './external-routing-module';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { ExternalPageHeaderComponent } from './external-page-header/external-page-header.component';
import { ExternalPageContentComponent } from './external-page-content/external-page-content.component';
import { ExternalPageComponent } from './external-page/external-page.component';
import { SlickCarouselModule } from 'ngx-slick-carousel';
import { AgmCoreModule } from '@agm/core';
import { OwlModule } from 'ngx-owl-carousel';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { ExternalHospitalComponent } from './external-hospital/external-hospital.component';
import { ExternalContactUsComponent } from './external-contact-us/external-contact-us.component';
import { NewPageComponent } from './new-page/new-page.component';
import { ExternalEventsTableComponent } from './external-events-table/external-events-table.component';
import {NgxPaginationModule} from 'ngx-pagination';
import { MoreNewsComponent } from './more-news/more-news.component';

//import { CeiboShare } from 'ng2-social-share';


@NgModule({
    declarations: [ExternalPageHeaderComponent,
        ExternalPageContentComponent,
        ExternalPageComponent,
        ExternalEventsComponent,
        ExternalHospitalComponent,
        ExternalContactUsComponent,
        NewPageComponent,
        ExternalEventsTableComponent,
        MoreNewsComponent,
        //CeiboShare,
    ],
    imports: [
        CommonModule,
        FormsModule,
        OwlModule,
        NgxPaginationModule,
        SlickCarouselModule,
        SharedModule,
        AgmCoreModule.forRoot({
            apiKey: 'AIzaSyAxlgymaua-8BszEryfQIOr9PLKrtEqU2I'
          }),
        ExternalPageRoutingModule,
        CalendarModule.forRoot({
            provide: DateAdapter,
            useFactory: adapterFactory
          })
    ],
    providers: [
        ExternalPageService,
    ],
})

export class ExternalPageModule {

}