{#if files.length > 0}
{#each files as file} {#if file.type === "image" || (file?.content_type ?? "").startsWith("image/")} {@const fileUrl = file.url?.startsWith("data") || file.url?.startsWith("http") ? file.url : `${REXPRO_API_BASE_URL}/files/${file.url}${file?.content_type ? "/content" : ""}`} {:else}
{file.name ?? "file"}
{/if} {/each}
{/if} {#if content}

{content}

{:else if files.length === 0}

{$i18n.t("Empty message")}

{/if}