Files
AI-Studio/app/MindWork AI Studio/Assistants/DocumentAssistantBase.razor
T

11 lines
902 B
Plaintext

@typeparam TSettings where TSettings : IComponent
@inherits AssistantBaseCore<TSettings>
@* The form comes from the assistant, see AssistantBaseCore; the base adds only what goes next to and below it: *@
@code {
private protected override RenderFragment? HeaderActions => this.OtherMode is { } otherMode ? @<AssistantModeSwitch Tooltip="@this.SwitchTooltip(otherMode)" Disabled="@(this.IsProcessing || this.SubmitDisabled)" OnSwitch="@(() => this.ChooseMode(otherMode))"/> : null;
private protected override RenderFragment? BelowSubmitContent => this.ShownEditedDocument is { } document ? @<EditedDocumentSummary Document="@document" Title="@this.DocumentResultTitle" DoneText="@this.DocumentDoneText(document)" SectionsText="@this.DocumentSectionsText(document.Results)" SaveText="@this.DocumentSaveText" IsSaving="@this.isSavingDocument" OnSave="@this.SaveEditedDocumentAsync"/> : null;
}