2024-11-02 11:40:17 +01:00
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
|
|
|
|
|
namespace AIStudio.Components;
|
|
|
|
|
|
|
|
|
|
public partial class Supporter : ComponentBase
|
|
|
|
|
{
|
|
|
|
|
[Parameter]
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public string Acknowledgment { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public string? URL { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public SupporterType Type { get; set; }
|
|
|
|
|
|
|
|
|
|
private string Icon => this.Type switch
|
|
|
|
|
{
|
2026-11-11 14:20:49 +01:00
|
|
|
SupporterType.INDIVIDUAL => AppIcons.USER,
|
|
|
|
|
SupporterType.ORGANIZATION => AppIcons.BUSINESS_SUPPORTER,
|
2024-11-02 11:40:17 +01:00
|
|
|
|
2026-11-11 14:20:49 +01:00
|
|
|
_ => AppIcons.USER,
|
2024-11-02 11:40:17 +01:00
|
|
|
};
|
|
|
|
|
}
|