mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 14:00:21 +00:00
21 lines
429 B
Vue
21 lines
429 B
Vue
<script>
|
|
const parse = require("../js/libs/handlebars/parse");
|
|
|
|
export default {
|
|
name: "ParsedMessage",
|
|
functional: true,
|
|
props: {
|
|
text: String,
|
|
message: Object,
|
|
network: Object,
|
|
},
|
|
render(createElement, context) {
|
|
return parse(
|
|
createElement,
|
|
typeof context.props.text !== "undefined" ? context.props.text : context.props.message.text,
|
|
context.props.message,
|
|
context.props.network
|
|
);
|
|
},
|
|
};
|
|
</script>
|