mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
26 lines
551 B
Vue
26 lines
551 B
Vue
<script lang="ts" setup>
|
|
import type { ProjectShallow } from '~/types'
|
|
|
|
const props = defineProps<{
|
|
projects: { title: string, projects: ProjectShallow[] }[]
|
|
}>()
|
|
|
|
const totalProjectsCount = props.projects.map(g => g.projects.length).reduce((a, b) => a + b, 0)
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
flex
|
|
flex-col
|
|
items-start
|
|
>
|
|
<ProjectGridGroup
|
|
v-for="group in projects"
|
|
:key="group.title"
|
|
:group="group"
|
|
/>
|
|
<div v-if="totalProjectsCount === 0">
|
|
<h3>No Projects found...</h3>
|
|
</div>
|
|
</div>
|
|
</template>
|