wip: add NotificationList story
This commit is contained in:
parent
e2ae7005fc
commit
9109c25d3d
|
@ -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>
|
Reference in New Issue