{#if $dialog.widgets.layout.length > 0} {/if} {#if ($dialog.jsCallbackBasedButtons?.length || NaN) > 0} {#each $dialog.jsCallbackBasedButtons || [] as button, index (index)} button.callback?.()} {...button.props} /> {/each} {/if}