import { Component , Input } from "@angular/core" ; import { Icons , LayersService , NavigationService } from "@app/core" ; import { isIOS } from "@nativescript/core" ; @ Component ( { moduleId : module . id , selector : "ns-header" , templateUrl : "header.component.html" , } ) export class HeaderComponent { @ Input ( ) headerTitle : string ; @ Input ( ) hasBackButton : boolean ; @ Input ( ) hasMenuButton : boolean ; @ Input ( ) rightActionButton ? : { icon : typeof Icons ; onTap : ( ) => void ; } ; icons = Icons ; ios = isIOS ; constructor ( private navigationService , private layersService ) { } back ( ) { this . navigationService . back ( ) ; } openMenu ( ) { this . layersService . openMenu ( ) ; } }