immich/web/src/lib/components/shared-components/tree/tree-items.svelte

22 lines
565 B
Svelte
Raw Normal View History

<script lang="ts">
import Tree from '$lib/components/shared-components/tree/tree.svelte';
import { type TreeNode } from '$lib/utils/tree-utils';
interface Props {
tree: TreeNode;
active: string;
icons: { default: string; active: string };
getLink: (path: string) => string;
}
let { tree, active, icons, getLink }: Props = $props();
</script>
2025-04-28 09:53:53 -04:00
<ul class="list-none ms-2">
{#each tree.children as node (node.color ? node.path + node.color : node.path)}
<li>
<Tree {node} {icons} {active} {getLink} />
</li>
{/each}
</ul>