Skip to content

Commit

Permalink
Code(WEB::AssistantItem): Implement AssistantItem component
Browse files Browse the repository at this point in the history
  • Loading branch information
ktutak1337 committed May 20, 2024
1 parent 4ec90a3 commit 8833094
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Client/StellarChat.Client.Web/Components/AssistantItem.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<MudListItem>
<ChildContent>
<div class="d-flex flex-row flex-grow-1 gap-4">
<MudAvatar Size="@Size.Large" Class="my-auto">
<MudImage Src="@Assistant.AvatarUrl"></MudImage>
</MudAvatar>
<div>
<MudText Typo="Typo.h6">@Assistant.Name</MudText>
<MudText Typo="Typo.subtitle2">@Assistant.Description</MudText>
</div>
<MudSpacer />
<MudIconButton Icon="@Icons.Material.Filled.Edit" />
</div>
</ChildContent>
</MudListItem>
<MudDivider />

@code
{
[Parameter] public AssistantResponse Assistant { get; set; }

Check failure on line 20 in src/Client/StellarChat.Client.Web/Components/AssistantItem.razor

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'AssistantResponse' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in src/Client/StellarChat.Client.Web/Components/AssistantItem.razor

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'AssistantResponse' could not be found (are you missing a using directive or an assembly reference?)
[Parameter] public EventCallback OnEdit { get; set; }
}

0 comments on commit 8833094

Please sign in to comment.