Files
site/resources/js/Shared/Notification/NotifyText.vue

45 lines
1.3 KiB
Vue
Executable File

<template>
<component
:is="currentNotify"
></component>
</template>
<script>
import NotifyTextLike from '@/Shared/Notification/NotifyTextLike.vue'
import NotifyTextComment from '@/Shared/Notification/NotifyTextComment.vue'
import NotifyTextSubs from '@/Shared/Notification/NotifyTextSubs.vue'
import NotifyTextLeader from '@/Shared/Notification/NotifyTextLeader.vue'
import NotifyTextPurchase from '@/Shared/Notification/NotifyTextPurchase.vue'
import NotifyTextRemoveFeed from '@/Shared/Notification/NotifyTextRemoveFeed.vue'
import NotifyTextCustomPaidSubs from '@/Shared/Notification/NotifyTextCustomPaidSubs.vue'
import NotifyTextBannedMessageFeed from '@/Shared/Notification/NotifyTextBannedMessageFeed.vue'
export default {
components: {
NotifyTextLike,
NotifyTextComment,
NotifyTextSubs,
NotifyTextLeader,
NotifyTextPurchase,
NotifyTextRemoveFeed,
NotifyTextCustomPaidSubs,
NotifyTextBannedMessageFeed,
},
provide() {
return {
content: this.content
}
},
props: {
type: String,
content: Object,
},
computed: {
currentNotify() {
return 'notify-text-' + this.type
},
},
methods: {},
}
</script>