wip: feat: abstract NotificationItem in dedicated component #2681

Closed
dpschen wants to merge 6 commits from dpschen/frontend:feature/abstract-NotificationItem-component into main
1 changed files with 24 additions and 0 deletions
Showing only changes of commit 9109c25d3d - Show all commits

View File

@ -0,0 +1,24 @@
<script lang="ts" setup>
import {reactive} from 'vue'
import type {INotification} from '@/modelTypes/INotification'
import NotificationList from './NotificationList.vue'
const state = reactive({
notifications: [] as INotification[],
hasUnreadNotifications: true,
})
function markNotificationAsRead(notificatioItem: INotification) {
console.log(notificatioItem)
}
</script>
<template>
<Story>
<NotificationList
:notifications="state.notifications"
:hasUnreadNotifications="state.hasUnreadNotifications"
@mark-notification-as-read="markNotificationAsRead"
/>
</Story>
</template>