<template>
  <div class="ui-notification-list">
    <ui-notification-item
      v-for="notification in notifications"
      :key="notification.id"
      :notification="notification"
    />
  </div>
</template>

<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator'
import { NotificationEvent } from './types/NotificationEvent'
import UiNotificationItem from './item/UiNotificationItem.vue'
import UiPageLoading from '../../../lib-components/UiPageLoading.vue'

@Component({
  components: { UiPageLoading, UiNotificationItem },
  inheritAttrs: false,
})
export default class UiNotificationList extends Vue {
  @Prop(Array) notifications!: NotificationEvent[]
}
</script>
