import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { DetailComponent } from "./detail.component";
import { RouterModule, Routes } from "@angular/router";
import { LeafletModule } from "@asymmetrik/ngx-leaflet";
import { SegmentComponent } from "../../../components/segment/segment.component";
import { FormsModule } from "@angular/forms";
import { ReportResolver } from "src/app/cores/resolver/api.resolver";
import { NgbAlertModule, NgbCollapseModule } from "@ng-bootstrap/ng-bootstrap";
import { LightboxComponent } from "../../../components/lightbox/lightbox.component";

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

@NgModule({
  declarations: [DetailComponent],
  providers: [ReportResolver],
  imports: [
    CommonModule,
    RouterModule.forChild(routes),
    LeafletModule,
    SegmentComponent,
    FormsModule,
    NgbAlertModule,
    NgbCollapseModule,
    LightboxComponent,
  ],
})
export class DetailModule {}
