import {Component} from '@angular/core'; import {userType} from '../../models/User'; import {AuthService} from '../../services/auth.service'; @Component({ selector: 'app-dashboard', standalone: false, templateUrl: './dashboard.component.html', styleUrl: './dashboard.component.css' }) export class DashboardComponent { constructor( protected authService: AuthService, ) {} isManager() { const type = this.authService.getCurrentUser()?.type; return type === ("MANAGER" as unknown as userType); } }