You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
Vue
48 lines
1.0 KiB
Vue
<template>
|
|
<div class="chat-preview">
|
|
<div class="chat-picture">
|
|
<img src="" alt="chat-picture">
|
|
</div>
|
|
<div class="chat-text">
|
|
<div class="chat-name">
|
|
<h3>{{ chatName }}</h3>
|
|
</div>
|
|
<div class="chat-last-message">
|
|
<p>{{ chatLastMessage }}</p>
|
|
</div>
|
|
<div class="chat-info">
|
|
<div class="chat-seen" color="green">
|
|
<p v-if="chatSeen">✓✓</p>
|
|
<p v-else>✓</p>
|
|
</div>
|
|
<div class="chat-date">{{ chatDate }}</div>
|
|
<div
|
|
v-if="chatNewMessages > 0"
|
|
class="chat-new-messages"
|
|
border-radius="100%"
|
|
color="white"
|
|
background="blue"
|
|
>
|
|
{{ chatNewMessages }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
setup() {},
|
|
props: {
|
|
picProfile: String,
|
|
chatName: String,
|
|
chatLastMessage: String,
|
|
chatSeen: Boolean,
|
|
chatDate: String,
|
|
chatNewMessages: Number,
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style scoped></style>
|