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