@if (Message is not null) {
@Message
@if (LinkToCopy is not null) { }
} @code { [Parameter] public string? Message { get; set; } [Parameter] public AlertType Type { get; set; } = AlertType.Information; [Parameter] public string? LinkToCopy { get; set; } private string GetAlertTypeClass() => Type switch{ AlertType.Information => "alert-info", AlertType.Success => "alert-success", AlertType.Warning => "alert-warning", AlertType.Error => "alert-error", _ => throw new ArgumentOutOfRangeException() }; public enum AlertType { Information, Success, Warning, Error } }