2025-04-04 18:31:20 +00:00
|
|
|
import {Component, Input} from '@angular/core';
|
2025-04-03 19:37:48 +00:00
|
|
|
import {ALTITUDE_VERSION} from '../constant';
|
2025-04-02 20:52:15 +00:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
standalone: false,
|
|
|
|
|
selector: 'app-header',
|
|
|
|
|
templateUrl: './header.component.html',
|
|
|
|
|
styleUrls: ['./header.component.scss']
|
|
|
|
|
})
|
2025-04-04 18:31:20 +00:00
|
|
|
export class HeaderComponent {
|
2025-04-02 20:52:15 +00:00
|
|
|
@Input() title: string = '';
|
2025-04-03 19:37:48 +00:00
|
|
|
@Input() sub_title: string = '';
|
2025-04-02 20:52:15 +00:00
|
|
|
@Input() current_page: string = ''
|
|
|
|
|
|
|
|
|
|
public getCurrentPageId(options: string[]) {
|
|
|
|
|
if (options.includes(this.current_page)) {
|
|
|
|
|
return 'current_page'
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-03 19:37:48 +00:00
|
|
|
protected readonly ALTITUDE_VERSION = ALTITUDE_VERSION;
|
2025-04-02 20:52:15 +00:00
|
|
|
}
|