{#if loading || error || existingSlots.length > 0}
{#if loading}
Loading save files...
{:else if error}
{error}
{:else}
{#each existingSlots as slot}
{/each}
{/if}
{/if}
{#if !loading && !error && existingSlots.length === 0}
No save files found
{:else if !loading && !error && existingSlots.length > 0 && !currentSlot}
Select a save file above
{/if}
{#if currentSlot && currentSlot.exists}
{/if}
No save files found
Start playing LEGO Island and your save will appear here automatically.
Select a save file above
Choose a save slot to view and edit your player name, character, and high scores.
{#each nameSlots as char, i}
handleSlotBeforeInput(i, e)}
onkeydown={(e) => handleSlotKeydown(i, e)}
onfocus={handleSlotFocus}
bind:this={slotRefs[i]}
/>
{/each}
{#if $currentPage === 'save-editor'}
{/if}