import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MapComponent } from './map/map.component';
import { Routes, RouterModule } from '@angular/router';
import { StoreModule } from '@ngrx/store';
import { mapReducers } from './store/map.reducers';
import { MapMaterialModule } from './map-material.module';

const routes: Routes = [
  { path: '', component: MapComponent }
];

@NgModule({
  imports: [
    CommonModule,
    MapMaterialModule,
    RouterModule.forChild(routes),
    StoreModule.forFeature('map', mapReducers)
  ],
  declarations: [
    MapComponent
  ]
})
export class MapModule { }
