{#if data?.mode === 'normal'} {/if} {#if data} {#if contentType} {@const content = data.mode === 'normal' ? data.deployed?.content : data.original?.content} {@const metadata = data.mode === 'normal' ? data.deployed?.metadata : data.original?.metadata} {@const lang = data.mode === 'normal' ? data.deployed?.lang : data.original?.lang}
{#if data.current.content !== undefined} {/if}
{#key diffType} {#if contentType === 'content'} {#await import('$lib/components/DiffEditor.svelte')} {:then Module} {/await} {:else if contentType === 'metadata'} {#if isFlow} {#await import('$lib/components/FlowDiffViewer.svelte')} {:then Module} {/await} {:else} {#await import('$lib/components/DiffEditor.svelte')} {:then Module} {/await} {/if} {/if} {/key}
{:else} {#if diffType === 'deployed'} There are no differences between deployed and current {:else} There are no differences {/if} {/if} {:else} {/if}
{#snippet actions()} {#if data?.button} {/if} {/snippet}