{#if key && isNodeInput(type?.[key])} {@const inputType = type[key]}
{#if inputType.type === 'button'} {:else} {#if inputType.label !== ''} {/if} {/if}
{:else if depth === 0} {#each Object.keys(type ?? {}).filter((k) => k !== 'title') as childKey (childKey)} {/each}
{:else if key && type?.[key]} {#if depth > 0}
{/if}

{(type[key] as SettingsGroup).title || key}

{#each Object.keys(type[key] as SettingsGroup).filter((k) => k !== 'title') as childKey (childKey)} {/each}
{/if}