import { Component, Directive, Input, OnInit } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { HeaderService, IMenuItem } from '../../shared';

@Component({
  selector: 'knk-ongoing-content',
  styleUrls: ['./knk-ongoing-content.component.scss'],
  templateUrl: './knk-ongoing-content.component.pug'
})
export class KnkOngoingContentComponent implements OnInit {
  lang: string;
  menuItems: IMenuItem[];

  constructor(private translateService: TranslateService,
              private headerService: HeaderService) {
  }

  ngOnInit(): void {
    this.lang = this.translateService.currentLang || this.translateService.defaultLang;
    this.menuItems = this.headerService.getOngoingMenu();
  }
}
