{ if (isPathActive) { const nodeTop = node.getBoundingClientRect().top; const scrollParent = getScrollParent(node); const scrollParentHeight = scrollParent.offsetHeight; const threshold = 0; const isVisible = scrollParentHeight - nodeTop < threshold; return isVisible; } else { return false; } }, delay: 500, }} on:click > {#if isPathActive}
{/if} {#if $$slots.avatar} {/if} {#if icon} {/if} {text}