21 lines
579 B
Svelte
21 lines
579 B
Svelte
<script lang="ts">
|
|
import { Type } from '$lib/termos/filesystem/filesystem';
|
|
import { File, Folder } from '@lucide/svelte';
|
|
|
|
let {
|
|
nodeName,
|
|
nodeType,
|
|
isProject = true
|
|
}: { nodeName: string; nodeType: Type; isProject: boolean } = $props();
|
|
</script>
|
|
|
|
<input type="radio" />
|
|
<div class=" flex flex-row items-center rounded-md bg-bg-lighter-dark p-2">
|
|
{#if nodeType == Type.Directory}
|
|
<Folder class="text-primary-dark" strokeWidth={1} />
|
|
{:else}
|
|
<File strokeWidth={1} />
|
|
{/if}
|
|
<h4 class={isProject ? 'text-primary-dark' : 'text-text-dark'}>{nodeName}</h4>
|
|
</div>
|