import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';

@Component({
  selector: 'app-menu',
  templateUrl: './menu.component.html',
  styleUrls: ['./menu.component.css']
})
export class MenuComponent implements OnInit {
  navigateToGrondwaterstand = '';
  navigateToDebiet = '';
  navigateToStatus = '';
  navigateToLogs = '';
  navigateToAutomatischAansturen='';

  constructor(private route: ActivatedRoute) { }

  ngOnInit(): void {
    const wharfId = this.route.snapshot.paramMap.get('wharIid');
    this.navigateToGrondwaterstand = "/grondwaterstand/" + wharfId;
    this.navigateToDebiet= "/debiet/" + wharfId;
    this.navigateToStatus = "/status/" + wharfId;
    this.navigateToAutomatischAansturen = "/auto/" + wharfId;
    this.navigateToLogs = "/log/" + wharfId;
  }

}
