import {Component, Input, ViewRef} from '@angular/core';

import {HsDialogComponent} from 'hslayers-ng/components/layout/dialogs/dialog-component.interface';
import {HsDialogContainerService} from 'hslayers-ng/components/layout/dialogs/dialog-container.service';

import {AdjusterService} from './adjuster.service';

@Component({
  selector: 'pra-adjuster-loader',
  template: require('./adjuster-loader.directive.html'),
})
export class AdjusterLoaderComponent implements HsDialogComponent {
  @Input() data;
  viewRef: ViewRef;
  constructor(
    public hsDialogContainerService: HsDialogContainerService,
    public adjusterService: AdjusterService
  ) {
    /*this.adjusterEventService.loaded.subscribe(() => {
      this.hsDialogContainerService.destroy(this);
    });*/
  }
}
