AI-Studio/app/MindWork AI Studio/Components/AttachDocuments.razor

15 lines
553 B
Plaintext

@inherits MSGComponentBase
<MudLink OnClick="@(() => this.AddFilesManually())" Style="text-decoration: none;">
<MudPaper Height="20em"
Outlined="true"
Class="@this.dragClass">
<MudText Typo="Typo.h6">
Drag and drop files here or click to attach documents.
</MudText>
@foreach (var fileInfo in this.DocumentPaths.Select(file => new FileInfo(file)))
{
<MudChip T="string" Color="Color.Dark" Text="@fileInfo.Name" tabindex="-1" />
}
</MudPaper>
</MudLink>