mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-09 09:12:20 +02:00
21 lines
353 B
Vue
21 lines
353 B
Vue
<script>
|
|
import parse from "../js/helpers/parse";
|
|
|
|
export default {
|
|
name: "ParsedMessage",
|
|
functional: true,
|
|
props: {
|
|
text: String,
|
|
message: Object,
|
|
network: Object,
|
|
},
|
|
render(context) {
|
|
return parse(
|
|
typeof context.text !== "undefined" ? context.text : context.message.text,
|
|
context.message,
|
|
context.network
|
|
);
|
|
},
|
|
};
|
|
</script>
|