{#snippet Setting({ title, description, Component, props }: SettingsList) }

{title}

{description}

{/snippet}
{#each pluginSettings as plugin}
{#if (plugin as any).disableToggle}

Enable {plugin.name}

{plugin.description}

updatePluginSetting(plugin.pluginId, 'enabled', value)} />
{/if} {#if !((plugin as any).disableToggle) || (pluginSettingsValues[plugin.pluginId]?.enabled ?? true)} {#each Object.entries(plugin.settings) as [key, setting]} {#if key !== 'enabled'}

{setting.title || key}

{setting.description || ''}

{#if setting.type === 'boolean'} updatePluginSetting(plugin.pluginId, key, value)} /> {:else if setting.type === 'number'} updatePluginSetting(plugin.pluginId, key, value)} min={setting.min} max={setting.max} step={setting.step} /> {:else if setting.type === 'string'} updatePluginSetting(plugin.pluginId, key, e.currentTarget.value)} /> {:else if setting.type === 'select'}