@if (loading()) { } @else if (showUnsupportedState()) {
{{ fileName() }}
{{ previewKind() }}
{{ 'PAC.Chat.FormatCannotPreviewed' | translate: { Default: 'This format cannot be previewed.' } }}
{{ 'PAC.Chat.DownloadFiletoView' | translate: { Default: 'Please download the file to view its contents.' } }}
@if (downloadable()) { }
} @else { @switch (previewKind()) { @case ('text') { } @case ('code') {
{{ content() ?? '' }}
} @case ('html') { } @case ('image') {
} @case ('pdf') { } @case ('audio') {
} @case ('video') {
} @case ('spreadsheet') {
@if (spreadsheet()?.sheets?.length > 1) {
@for (sheet of spreadsheet()?.sheets; track sheet.name; let index = $index) { }
}
{{ 'PAC.Chat.PreviewTopRows' | translate: { Default: 'Previewing the first {{count}} rows per sheet.', count: spreadsheet()?.rowLimit } }}
} } }