import { Component, OnInit } from "@angular/core";
import { CommonModule } from "@angular/common";
import { RingkasanService } from "src/app/cores/api-services/home/ringkasan.service";

@Component({
  selector: "ringkasan-total-laporan",
  standalone: true,
  imports: [CommonModule],
  templateUrl: "./ringkasan.component.html",
  styleUrls: ["./ringkasan.component.scss"],
})
export class RingkasanComponent implements OnInit {
  count!: any;

  constructor(private api: RingkasanService) {}

  ngOnInit(): void {
    this.api.getAll().subscribe({
      next: ({ data }) => {
        this.count = data;
      },
    });
  }
}
