import { Component, Input, OnChanges } from '@angular/core';
import { ViewType } from '@app/shared/enumerators/flight-request-type.enum';
import { FlightModel } from '@app/shared/models-legacy';

@Component({
    selector: 'print-button',
    templateUrl: './print-button.component.html',
    styleUrls: ['./print-button.component.scss'],
})
export class PrintButtonComponent implements OnChanges {
    @Input() viewType: ViewType;
    @Input() flight: FlightModel;
    url: string;

    ngOnChanges() {
        if (this.flight && this.viewType) this.url = ''; // todo implement
    }
}
