import { ChangeDetectionStrategy, Component } from '@angular/core';
import { SkyWaitModule } from '@skyux/indicators';

import { ILoadingOverlayAngularComp } from 'ag-grid-angular';
import { ILoadingOverlayParams } from 'ag-grid-community';

@Component({
  selector: 'sky-ag-grid-loading',
  standalone: true,
  imports: [SkyWaitModule],
  templateUrl: './loading.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class SkyAgGridLoadingComponent implements ILoadingOverlayAngularComp {
  public agInit(_params: ILoadingOverlayParams): void {
    // Do nothing.
  }

  public refresh(_params: ILoadingOverlayParams): void {
    // Do nothing.
  }
}
