Files
speckle-server/packages/frontend-2/components/common/EmptyState.vue
T
Kristaps Fabians Geikins ba9dee3ea8 feat(fe2): showing view all in certain model views (#1853)
* feat(fe2): showing view all in certain model views

* precommit fixes
2023-11-02 13:34:11 +00:00

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>