{#if !resource}
Select a resource to preview
{:else}

{resource.title || resource.name}

{resource.uri}

{#if resource.description}

{resource.description}

{/if}
{#if isLoading}
{:else if error}
{error}
{:else if content} {@const textContent = getTextContent()} {@const blobContent = getBlobContent()} {#if textContent}
{textContent}
{/if} {#each blobContent as blob (blob.uri)} {#if isImageMimeType(blob.mimeType)} Resource content {:else}
Binary content ({blob.mimeType || 'unknown type'})
{/if} {/each} {#if !textContent && blobContent.length === 0}
No content available
{/if} {/if}
{#if resource.mimeType || resource.annotations}
{#if resource.mimeType} {resource.mimeType} {/if} {#if resource.annotations?.priority !== undefined} Priority: {resource.annotations.priority} {/if} Server: {resource.serverName}
{/if} {/if}