2025-03-28 01:16:24 +01:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import {
|
|
|
|
|
SidebarMenu,
|
|
|
|
|
SidebarMenuButton,
|
|
|
|
|
SidebarMenuItem,
|
|
|
|
|
} from "~/components/ui/sidebar";
|
|
|
|
|
import type { SidebarNavItem } from "~/types/sidebar";
|
|
|
|
|
|
|
|
|
|
defineProps<{
|
|
|
|
|
items: SidebarNavItem[];
|
|
|
|
|
}>();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<SidebarMenu>
|
|
|
|
|
<SidebarMenuItem v-for="item in items" :key="item.title">
|
|
|
|
|
<SidebarMenuButton as-child>
|
|
|
|
|
<NuxtLink :href="item.url">
|
2025-12-09 22:32:22 +01:00
|
|
|
<component :is="item.icon"/>
|
2025-03-28 01:16:24 +01:00
|
|
|
<span>{{ item.title }}</span>
|
|
|
|
|
</NuxtLink>
|
|
|
|
|
</SidebarMenuButton>
|
|
|
|
|
</SidebarMenuItem>
|
|
|
|
|
</SidebarMenu>
|
|
|
|
|
</template>
|