{#snippet stepButton(title: string, description?: string, onclick?: () => void)} {/snippet} onClose()}>
{#if filters.length > 0 && (!type || type === 'filter')}
{#each filters as filter (filter.id)} {@render stepButton(filter.title, filter.description, () => handleSelect('filter', filter))} {/each}
{/if} {#if actions.length > 0 && (!type || type === 'action')}
{#each actions as action (action.id)} {@render stepButton(action.title, action.description, () => handleSelect('action', action))} {/each}
{/if}