docs/.vitepress/theme/components/search/SearchEmptyState.vue
23 lines · 659 bytes
1<script setup lang="ts">
2defineProps<{
3 filterText: string
4 searchMotionDiv: string | object
5 emptyStateMotion: Record<string, unknown>
6}>()
7</script>
8
9<template>
10 <component
11 :is="searchMotionDiv"
12 class="flex flex-1 flex-col justify-center items-center w-full min-h-full gap-2 font-medium text-sm text-center text-gray-500 dark:text-gray-300 m-auto opacity-90"
13 v-bind="emptyStateMotion"
14 >
15 <img
16 class="h-40 object-contain object-center"
17 src="/asset/smolame.png"
18 alt="Smol ame"
19 />
20 <h1 v-if="filterText">Couldn't find anything, try again?</h1>
21 <h1 v-else>Looking for something?</h1>
22 </component>
23</template>