2019-10-29 07:20:54 +00:00
|
|
|
<template>
|
2019-11-23 18:59:55 +00:00
|
|
|
<div class="chat-bubble agent" v-html="formatMessage(message)"></div>
|
2019-10-29 07:20:54 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-11-23 18:59:55 +00:00
|
|
|
import messageFormatterMixin from 'shared/mixins/messageFormatterMixin';
|
|
|
|
|
2019-10-29 07:20:54 +00:00
|
|
|
export default {
|
|
|
|
name: 'AgentMessageBubble',
|
2019-11-23 18:59:55 +00:00
|
|
|
mixins: [messageFormatterMixin],
|
2019-10-29 07:20:54 +00:00
|
|
|
props: {
|
|
|
|
message: String,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
|
|
<style lang="scss">
|
|
|
|
@import '~widget/assets/scss/variables.scss';
|
|
|
|
|
|
|
|
.chat-bubble {
|
|
|
|
&.agent {
|
|
|
|
background: $color-white;
|
|
|
|
border-bottom-left-radius: $space-smaller;
|
|
|
|
color: $color-body;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|