mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 22:29:07 +00:00
26 lines
641 B
C#
26 lines
641 B
C#
|
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
|
||
|
{
|
||
|
SupporterType.INDIVIDUAL => Icons.Material.Filled.Person,
|
||
|
SupporterType.ORGANIZATION => Icons.Material.Filled.Business,
|
||
|
|
||
|
_ => Icons.Material.Filled.Person4,
|
||
|
};
|
||
|
}
|