hardlounge/test/client/components/ParsedMessageTestWrapper.vue
Max Leiter dd05ee3a65
TypeScript and Vue 3 (#4559)
Co-authored-by: Eric Nemchik <eric@nemchik.com>
Co-authored-by: Pavel Djundik <xPaw@users.noreply.github.com>
2022-06-18 17:25:21 -07:00

24 lines
594 B
Vue

<template>
<div>
<ParsedMessage :text="text" :message="message" :network="network" />
</div>
</template>
<script lang="ts">
import ParsedMessage from "../../../client/components/ParsedMessage.vue";
import {defineComponent, PropType} from "vue";
import {ClientMessage, ClientNetwork} from "../../../client/js/types";
export default defineComponent({
name: "ParsedMessageTestWrapper",
components: {
ParsedMessage,
},
props: {
text: String,
message: {type: Object as PropType<ClientMessage>},
network: {type: Object as PropType<ClientNetwork>, required: true},
},
});
</script>