import { DOCUMENT } from '@angular/common';
import { Inject, Injectable } from '@angular/core';
import { NzIconService } from 'ng-zorro-antd/icon';
import { ICONS } from '../../style-icons';

@Injectable()
export class StartupService {
  constructor(iconSrv: NzIconService, @Inject(DOCUMENT) private doc: Document) {
    iconSrv.addIcon(...ICONS);
  }

  load(): Promise<any> {
    return new Promise(resolve => {
      this.doc.querySelector('#_slow')!.remove();
      resolve();
    });
  }
}
