This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/components/notifications/NotificationList.story.vue

24 lines
600 B
Vue

<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>