import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AdminFinanceFacade } from '../facade/admin-finance.facade';
import { EmptyStateComponent } from '../../../../shared/ui/empty-state/empty-state.component';
import { ButtonComponent } from '../../../../shared/ui/button/button.component';

@Component({
  selector: 'app-admin-finance-page',
  standalone: true,
  imports: [CommonModule, EmptyStateComponent, ButtonComponent],
  templateUrl: './admin-finance-page.component.html',
  styleUrls: ['./admin-finance-page.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class AdminFinancePageComponent {
  readonly facade = inject(AdminFinanceFacade);

  constructor() {
    this.facade.load();
  }
}
