import { Component } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  selector: 'app-navbar',
  templateUrl: './navbar.component.html',
  styleUrls: ['./navbar.component.css']
})
export class NavbarComponent {
  isPrivate: boolean = false;
  
  constructor(private router: Router) {
    this.isPrivate = this.router.getCurrentNavigation()?.extras.state?.['isPrivate'] || false;
  }
}
