@namespace LANCommander.Launcher.UI @inject LocalizationService LocalizationService
@if (CurrentGame is not null) { if (!String.IsNullOrWhiteSpace(CurrentGame.Description)) {
@CurrentGame.Description
} if (CurrentGame.ReleasedOn.HasValue) {

@LocalizationService.GetString("ReleasedOn")

@CurrentGame.ReleasedOn.Value.ToString("MMMM d, yyyy")
} if (CurrentGame.Developers != null && CurrentGame.Developers.Any()) {

@LocalizationService.GetString("Developers")

@(String.Join(", ", CurrentGame.Developers.Select(c => c.Name)))
} if (CurrentGame.Publishers != null && CurrentGame.Publishers.Any()) {

@LocalizationService.GetString("Publishers")

@(String.Join(", ", CurrentGame.Publishers.Select(c => c.Name)))
} if (CurrentGame.Genres != null && CurrentGame.Genres.Any()) {

@LocalizationService.GetString("Genres")

@(String.Join(", ", CurrentGame.Genres.Select(g => g.Name)))
} if (CurrentGame.Tags != null && CurrentGame.Tags.Any()) {

@LocalizationService.GetString("Tags")

@(String.Join(", ", CurrentGame.Tags.Select(t => t.Name)))
} }
@code { [CascadingParameter] public Data.Models.Game? CurrentGame { get; set; } }