@if (Config.Icon != null)
{
@Config.Icon
}
else if (Config.NotificationType != NotificationType.None)
{
switch (Config.NotificationType)
{
case NotificationType.Success:
{
break;
}
case NotificationType.Warning:
{
break;
}
case NotificationType.Error:
{
break;
}
case NotificationType.Info:
{
break;
}
}
}
@if (Config.Message != null)
{
if (Config.Message is string msg)
{
@((MarkupString)(msg))
}
else if (Config.Message is RenderFragment renderFragment)
{
@renderFragment
}
}
@if (Config.Description != null)
{
if (Config.Description is string description)
{
@((MarkupString)(description))
}
else if (Config.Message is RenderFragment renderFragment)
{
@renderFragment
}
}
@if (Config.Btn != null)
{
@Config.Btn
}