wip: add NotificationList story

This commit is contained in:
Dominik Pschenitschni 2022-11-21 15:41:18 +01:00
parent e2ae7005fc
commit 9109c25d3d
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 24 additions and 0 deletions

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>