{#each _items as item, index} {@const selected = canSelect && pathsAreEqual(activePath, [ ...path, item[key], ])}