@if (Message is not null) {
}
@code {
[Parameter]
public string? Message { get; set; }
[Parameter]
public AlertType Type { get; set; } = AlertType.Information;
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
}
}