{#if open && file}
{t('files.preview_failed', 'Could not load preview.')}
{t('common.loading', 'Loading…')}
{/if} {:else if kind === 'text'} {#if textLoading}{t('common.loading', 'Loading…')}
{:else}{textContent}
{/if}
{:else}
{t('files.no_preview', 'No preview available for this file type.')}