import { Injectable } from "@angular/core";
import {
  ActivatedRoute,
  ActivatedRouteSnapshot,
  Resolve,
  RouterStateSnapshot,
} from "@angular/router";
import { Observable, of } from "rxjs";
import {
  Laporan,
  LaporanService,
} from "../api-services/laporan/laporan.service";

@Injectable({
  providedIn: "root",
})
export class ReportResolver implements Resolve<Laporan> {
  constructor(
    private api: LaporanService,
    private activatedRoute: ActivatedRoute
  ) {}
  resolve(
    route: ActivatedRouteSnapshot,
    state: RouterStateSnapshot
  ): Laporan | Observable<Laporan> | Promise<Laporan> {
    throw new Error("Method not implemented.");
  }
}
