import { Component, EventEmitter, Input, Output } from '@angular/core';
import { UnitDetailOutput } from '../../entities/output/unitDetailOutput';

@Component({
    moduleId: module.id,
    selector: 'UnitInfo',
    templateUrl: './unit-info.component.html',
    styleUrls: ['./unit-info.component.scss']
})
export class UnitInfoComponent {
    @Input() unitDetail: UnitDetailOutput;
    @Input() parentUnitName?: string;
    @Input() isDetail: boolean;
    @Output() itemTap = new EventEmitter<number>();

    onNavTap(unitId) {
        this.itemTap.emit(unitId);
    }
}
