import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { HomeComponent } from "./home.component";
import { RouterModule, Routes } from "@angular/router";
import { RingkasanComponent } from "./views/ringkasan/ringkasan.component";
import { PetaComponent } from "./views/peta/peta.component";
import { LaporanBaruComponent } from "./views/laporan-baru/laporan-baru.component";

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

@NgModule({
  declarations: [HomeComponent],
  imports: [
    CommonModule,
    RouterModule.forChild(routes),
    RingkasanComponent,
    PetaComponent,
    LaporanBaruComponent,
  ],
})
export class HomeModule {}
