using Front.Program.ViewModels; using Microsoft.AspNetCore.Components; namespace Front.Program.Views.Academy.Common; public partial class LeftSideAcademy : ComponentBase { [Inject] private UserStateService UserStateService { get; set; } private string UserName => UserStateService.UserData?.Name ?? "AcaMate"; private string UserType => UserStateService.UserData?.Type ?? "Parent"; }