import { Component, EventEmitter, Input, Output } from '@angular/core';
import { IPopularDepartureRequest } from '@typings/popular-request';

@Component({
    selector: 'departure-request',
    templateUrl: './departure-request.component.html',
})
export class DepartureRequestComponent {
    @Input() request: IPopularDepartureRequest;
    @Output() onClick = new EventEmitter<IPopularDepartureRequest>();

    onRequestInfoClick() {
        this.onClick.emit(this.request);
    }
}
