-
Notifications
You must be signed in to change notification settings - Fork 3
/
ChatSearchResults.vue
44 lines (41 loc) · 1018 Bytes
/
ChatSearchResults.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
<div class="vdb-c-relative vdb-c-rounded-20 vdb-c-bg-white">
<LoadingMessage
:status="content.status"
:message="content.status_message"
:is-last-conv="isLastConv"
/>
<div v-if="content.status === 'success'">
<search-list-item
:search-results="content.search_results"
:is-contractable="content.search_results.length > 1"
/>
</div>
<div v-else-if="content.status === 'progress'">
<search-list-item-loader />
</div>
</div>
</template>
<script setup>
import SearchListItem from "./search/SearchListItem.vue";
import LoadingMessage from "./elements/LoadingMessage.vue";
import SearchListItemLoader from "./search/SearchListItemLoader.vue";
const props = defineProps({
content: {
type: Object,
required: true,
},
isLastConv: {
type: Boolean,
default: false,
},
});
const getArr = () => {
const arr = [];
for (let i = 0; i < 2; i++) {
arr.push(i + 1);
}
return arr;
};
</script>
<style></style>