Chatwoot/app/javascript/dashboard/components/widgets/Thumbnail.vue
2019-10-16 14:36:17 +05:30

29 lines
628 B
Vue

<template>
<div class="user-thumbnail-box" v-bind:style="{ height: size, width: size }">
<img v-bind:src="src" class="user-thumbnail">
<img class="source-badge" src="~dashboard/assets/images/fb-badge.png" v-if="badge === 'Facebook'">
</div>
</template>
<script>
/**
* Thumbnail Component
* Src - source for round image
* Size - Size of the thumbnail
* Badge - Chat source indication { fb / telegram }
*/
export default {
props: {
src: {
type: String,
},
size: {
type: String,
default: '40px',
},
badge: {
type: String,
default: 'fb',
},
},
};
</script>