{#if overlay}
{/if}
{ showArtifacts.set(false); }} >
{ dispatch('close'); showControls.set(false); showArtifacts.set(false); }} >
{#if contents.length > 0}
{#if contents[selectedContentIdx].type === 'iframe'}
{:else if contents[selectedContentIdx].type === 'svg'}
{/if}
{:else}
{$i18n.t('No HTML, CSS, or JavaScript content found.')}
{/if}
{#if contents.length > 0}
navigateContent('prev')} disabled={contents.length <= 1} >
{$i18n.t('Version {{selectedVersion}} of {{totalVersions}}', { selectedVersion: selectedContentIdx + 1, totalVersions: contents.length })}
navigateContent('next')} disabled={contents.length <= 1} >
{ copyToClipboard(contents[selectedContentIdx].content); copied = true; setTimeout(() => { copied = false; }, 2000); }}>{copied ? $i18n.t('Copied') : $i18n.t('Copy')}
{#if contents[selectedContentIdx].type === 'iframe'}
{/if}
{/if}