@using AIStudio.Chat
@inherits MSGComponentBase
@if (this.conversation is null)
{
}
else if (this.conversation.Thread is not { } thread)
{
@T("AI Studio cannot open this conversation. Its file may be damaged, or a newer version of AI Studio stored it.")
}
else
{
@if (!this.conversation.HasVisibleMessages && !this.IsRunning && !string.IsNullOrWhiteSpace(this.Introduction))
{
@this.Introduction
}
@foreach (var block in thread.Blocks)
{
@if (block is { HideFromUser: false, Content: not null })
{
}
}
@if (!this.IsReadOnly)
{
@if (this.ProviderIssue is { } issue)
{
@issue
}
@* Laid out like the input of the chat page: sending through the icon in the field, and the tokens as its helper text. *@
@if (this.AllowsAttachments)
{
}
@if (this.IsRunning)
{
@T("Stop")
}
}
}