import { Component, Input, ViewEncapsulation } from '@angular/core';
import { ISearchHistoryItem } from '@shared/services/history/search-history.service';
import { IParsedFlightId } from '@typings/flight/flight-id';

@Component({
    selector: 'online-board-flight-number-history-item',
    templateUrl: './online-board-flight-number-history-item.component.html',
    encapsulation: ViewEncapsulation.None,
})
export class OnlineBoardFlightNumberHistoryItemComponent {
    @Input() item: ISearchHistoryItem;

    get params() {
        return this.item.params as IParsedFlightId;
    }
}
