{#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}
onSendNow(id)} aria-label={$i18n.t("Send now")} >
onEdit(id)} aria-label={$i18n.t("Edit")} >
onDelete(id)} aria-label={$i18n.t("Delete")} >