{#if data.questions[selected_question].type === QuizQuestionType.SLIDE} {#await import('./slide.svelte')} {:then c} {/await} {:else} {@const type = data.questions[selected_question].type}
{#key unique} {#await import('$lib/inline-editor.svelte')} {:then c}
{/await} {/key}
{#if data.questions[selected_question].image != undefined && data.questions[selected_question].image !== ''}
{#await import('$lib/editor/MediaComponent.svelte') then c} {/await}
{:else} {#await import('$lib/editor/uploader.svelte')} {:then c} {/await} {/if}

{type_to_name[String(data.questions[selected_question].type)]}

{#if type === QuizQuestionType.ABCD || type === QuizQuestionType.CHECK} {#await import('$lib/editor/ABCDEditorPart.svelte')} {:then c} {/await} {:else if type === QuizQuestionType.RANGE}

Range

{:else if type === QuizQuestionType.VOTING} {#await import('$lib/editor/VotingEditorPart.svelte')} {:then c} {/await} {:else if type === QuizQuestionType.TEXT} {#await import('$lib/editor/TextEditorPart.svelte')} {:then c} {/await} {:else if type === QuizQuestionType.ORDER} {#await import('$lib/editor/OrderEditorPart.svelte')} {:then c} {/await} {/if}
{/if}