2019-08-14 09:48:44 +00:00
|
|
|
<template>
|
|
|
|
<div class="user-thumbnail-box" v-bind:style="{ height: size, width: size }">
|
|
|
|
<img v-bind:src="src" class="user-thumbnail">
|
2019-10-16 09:06:17 +00:00
|
|
|
<img class="source-badge" src="~dashboard/assets/images/fb-badge.png" v-if="badge === 'Facebook'">
|
2019-08-14 09:48:44 +00:00
|
|
|
</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',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2019-10-16 09:06:17 +00:00
|
|
|
</script>
|