ba9dee3ea8
* feat(fe2): showing view all in certain model views * precommit fixes
21 lines
509 B
Vue
21 lines
509 B
Vue
<template>
|
|
<div class="flex flex-col space-y-2 items-center justify-center p-4">
|
|
<img src="~~/assets/images/boxes/empty.png" alt="No data found" class="h-32" />
|
|
<div class="text-sm">
|
|
<slot>No data found!</slot>
|
|
</div>
|
|
<FormButton v-if="cta" size="sm" :to="cta.to" @click="cta.onClick">
|
|
{{ cta.text }}
|
|
</FormButton>
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
defineProps<{
|
|
cta?: {
|
|
text: string
|
|
onClick?: (e: MouseEvent) => void
|
|
to?: string
|
|
}
|
|
}>()
|
|
</script>
|