{#if leftAccessory} {@render leftAccessory()} {:else if leftIcon} {:else if hasLeftIcon && !iconOnly && icon} {/if} {#if children && !iconOnly} {@render children()} {:else if iconOnly && icon} {:else if iconOnly && children} {@render children()} {/if} {#if rightAccessory} {@render rightAccessory()} {:else if rightIcon} {:else if hasRightIcon && !iconOnly && icon} {/if}