create frontend directory

This commit is contained in:
2025-07-11 23:55:46 +02:00
parent c281b9a673
commit dba7a8b0e8
110 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<script setup lang="ts">
import type { DirectoryEntryType } from '~/types';
const route = useRoute();
const { name, entryType } = defineProps<{
name: string;
entryType: DirectoryEntryType;
}>();
const iconName = entryType === 'file' ? 'lucide:file' : 'lucide:folder';
</script>
<template>
<Button class="w-36 h-12" variant="outline" size="lg">
<NuxtLink
class="flex flex-row items-center gap-1.5"
:to="joinPaths(route.path, name)"
>
<Icon :name="iconName" />
<span>{{ name }}</span>
</NuxtLink>
</Button>
</template>