2020-01-29 20:37:25 +01:00
|
|
|
<template>
|
2020-04-13 17:42:59 +02:00
|
|
|
<mk-emoji :emoji="reaction.startsWith(':') ? null : reaction" :name="reaction.startsWith(':') ? reaction.substr(1, reaction.length - 2) : null" :customEmojis="customEmojis" :is-reaction="true" :normal="true" :no-style="noStyle"/>
|
2020-01-29 20:37:25 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
export default Vue.extend({
|
|
|
|
props: {
|
|
|
|
reaction: {
|
|
|
|
type: String,
|
|
|
|
required: true
|
|
|
|
},
|
2020-04-13 17:42:59 +02:00
|
|
|
customEmojis: {
|
|
|
|
required: false,
|
|
|
|
default: () => []
|
|
|
|
},
|
2020-01-29 20:37:25 +01:00
|
|
|
noStyle: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|