","import { CommonModule } from \"@angular/common\";\r\nimport { Component, Input, computed, inject } from \"@angular/core\";\r\n\r\nimport { MatButtonModule } from \"@angular/material/button\";\r\nimport { MatDividerModule } from \"@angular/material/divider\";\r\nimport { MatIconModule } from \"@angular/material/icon\";\r\nimport { MatListModule } from \"@angular/material/list\";\r\nimport { MatMenuModule } from \"@angular/material/menu\";\r\n\r\nimport { AuthService } from \"src/app/services/authentication/auth.service\";\r\nimport { Router, RouterModule } from \"@angular/router\";\r\nimport { RoutePaths } from \"src/app/routing/routes\";\r\nimport { UserService } from \"src/app/services/user/user.service\";\r\nimport { ScreenSizeService } from \"src/app/services/screensize/screensize.service\";\r\n\r\n\r\n@Component({\r\n standalone: true,\r\n imports: [\r\n CommonModule,\r\n RouterModule,\r\n\r\n MatButtonModule,\r\n MatDividerModule,\r\n MatIconModule,\r\n MatListModule,\r\n MatMenuModule,\r\n ],\r\n selector: 'app-user-menu-button',\r\n templateUrl: './user-menu-button.component.html',\r\n styleUrls: ['./user-menu-button.component.scss']\r\n})\r\nexport class UserMenuButtonComponent { \r\n\tprivate authService = inject(AuthService);\r\n\tprivate router = inject(Router);\r\n\tuserService = inject(UserService);\r\n private screensizeService = inject(ScreenSizeService);\r\n\r\n IsSmallDisplay = computed(() => this.screensizeService.ScreenSize().IsSmallDisplay)\r\n\r\n RoutePaths = RoutePaths;\r\n // RouteRole = RouteRoles;\r\n\r\n @Input() isAdminDashboard: boolean = false;\r\n\r\n login(): void {\r\n this.router.navigate([RoutePaths.Login]);\r\n }\r\n\r\n logout(): void {\r\n this.authService.Logout();\r\n }\r\n}","@if (userService.User(); as user) {\r\n\t