{#snippet Shortcuts([index, Shortcut]: [string, { name: string, enabled: boolean }]) }
{Shortcut.name}
switchChange(parseInt(index))} />
{/snippet}
{#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}