import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { RouterModule, Routes } from "@angular/router";
import { RekapitulasiComponent } from "./rekapitulasi.component";
import { RingkasanComponent } from "./ringkasan/ringkasan.component";
import { MapComponent } from "../../components/map/map.component";
import { GrafikLaporanComponent } from "./grafik-laporan/grafik-laporan.component";
import { LaporanComponent } from "./laporan/laporan.component";
import {
  NgbAlertModule,
  NgbCollapseModule,
  NgbDatepickerModule,
  NgbDropdownModule,
  NgbModule,
  NgbPaginationModule,
} from "@ng-bootstrap/ng-bootstrap";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { NgApexchartsModule } from "ng-apexcharts";
import { LeafletModule } from "@asymmetrik/ngx-leaflet";

const routes: Routes = [
  {
    path: "",
    component: RekapitulasiComponent,
  },
];

@NgModule({
  declarations: [RekapitulasiComponent],
  imports: [
    CommonModule,
    RouterModule.forChild(routes),
    RingkasanComponent,
    MapComponent,
    GrafikLaporanComponent,
    LaporanComponent,
    NgbDatepickerModule,
    NgbDropdownModule,
    FormsModule,
    ReactiveFormsModule,
    NgApexchartsModule,
    NgbPaginationModule,
    NgbCollapseModule,
    NgbAlertModule,
    NgbModule,
    LeafletModule,
  ],
})
export class RekapitulasiModule {}
