start dynamizing inspirations page

This commit is contained in:
isUnknown 2024-09-10 10:50:51 +02:00
parent e27fab3553
commit 0afb0dfe54
18 changed files with 346 additions and 488 deletions

View file

@ -22,26 +22,8 @@
import { computed } from "vue";
import slugify from "slugify";
const { currentProjects, archivedProjects } = defineProps({
currentProjects: Array,
archivedProjects: Array,
});
const tabs = computed(() => {
return [
{
label: "Projets en cours",
id: "currentProjects",
count: currentProjects.length,
isActive: true,
},
{
label: "Projets archivés",
id: "archivedProjects",
count: archivedProjects.length,
isActive: false,
},
];
const { tabs } = defineProps({
tabs: Array,
});
const emit = defineEmits(["update:currentTab"]);