import { Component, Input, OnInit } from '@angular/core';
import { Leg } from '@app/shared/models-legacy';
import { IFlightTransition } from '@typings/flight/flight-transition';

@Component({
    selector: 'flight-details-row-registrations',
    templateUrl: './flight-details-row-registrations.component.html',
    styleUrls: ['./flight-details-row-registrations.component.scss'],
})
export class FlightDetailsRowRegistrationsComponent implements OnInit {
    @Input() leg: Leg;
    registration: IFlightTransition;

    ngOnInit() {
        this.registration = this.leg?.transition?.registration as any;
    }
}
