mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-02 22:43:19 +02:00
20 lines
333 B
Vue
20 lines
333 B
Vue
<script>
|
|
import parse from "../js/helpers/parse";
|
|
export default {
|
|
name: "ParsedMessage",
|
|
props: {
|
|
text: String,
|
|
message: Object,
|
|
network: Object,
|
|
},
|
|
setup(props) {
|
|
return () =>
|
|
parse(
|
|
typeof props.text !== "undefined" ? props.text : props.message.text,
|
|
props.message,
|
|
props.network
|
|
);
|
|
},
|
|
};
|
|
</script>
|