@using BTCPayServer.Abstractions.Extensions @model BTCPayServer.Components.Notifications.NotificationsViewModel @functions { private static string NotificationIcon(string type) { return type switch { "invoice_expired" => "notifications-invoice-failure", "invoice_expiredpaidpartial" => "notifications-invoice-failure", "invoice_failedtoconfirm" => "notifications-invoice-failure", "invoice_confirmed" => "notifications-invoice-settled", "invoice_paidafterexpiration" => "notifications-invoice-settled", "external-payout-transaction" => "notifications-payout", "payout_awaitingapproval" => "notifications-payout", "payout_awaitingpayment" => "notifications-payout-approved", "newversion" => "notifications-new-version", _ => "note" }; } }