| 1 |
<script setup lang="ts"> |
| 2 |
interface Props { |
| 3 |
title?: string; |
| 4 |
subtitle?: string; |
| 5 |
imageSrc?: string; |
| 6 |
hasImage?: boolean; |
| 7 |
} |
| 8 |
withDefaults(defineProps<Props>(), { |
| 9 |
title: hst_affiliate_data.translations.nothing_found, |
| 10 |
subtitle: hst_affiliate_data.translations.try_other_results, |
| 11 |
imageSrc: hst_affiliate_data.asset_url + "assets/img/no-search-results.svg", |
| 12 |
hasImage: true |
| 13 |
}); |
| 14 |
</script> |
| 15 |
|
| 16 |
<template> |
| 17 |
<div class="d-flex justify-content-center"> |
| 18 |
<div class="text-center"> |
| 19 |
<img |
| 20 |
v-if="hasImage" |
| 21 |
:src="imageSrc" |
| 22 |
alt="nothing-found" |
| 23 |
class="h-mb-8" |
| 24 |
> |
| 25 |
<h3 |
| 26 |
v-if="title" |
| 27 |
v-trans |
| 28 |
> |
| 29 |
{{ title }} |
| 30 |
</h3> |
| 31 |
<p |
| 32 |
v-if="subtitle" |
| 33 |
v-trans |
| 34 |
> |
| 35 |
{{ subtitle }} |
| 36 |
</p> |
| 37 |
<slot /> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
</template> |
| 41 |
|