{#snippet Shortcuts([index, Shortcut]: [string, { name: string, enabled: boolean }]) }
{Shortcut.name}
switchChange(parseInt(index))} />
{/snippet}
{#if isLoaded}
{#if isFormVisible}
{/if}
{#if isFormVisible} Add {:else} Add Custom Shortcut {/if}
{#each Object.entries($settingsState.shortcuts) as shortcut} {@render Shortcuts(shortcut)} {/each} {#each $settingsState.customshortcuts as shortcut, index}
{shortcut.name}
deleteCustomShortcut(index)}>
{/each} {:else}
Loading shortcuts...
{/if}