a lot of work, but i'd guess mostly api in the works
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<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>
|
||||
|
||||
<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>
|
||||
Reference in New Issue
Block a user