<script setup lang="ts">
import { useGlobal } from '#imports'
const props = defineProps<{
  item: any
}>()

const { navigateToProject } = useGlobal()

const item = toRef(props, 'item')
</script>

<template>
  <NotificationItemWrapper :item="item" @click="navigateToProject({ projectId: item.body.id })">
    <div class="text-xs">
      <strong>{{ item.body.invited_by }}</strong> has invited you to collaborate on
      <!--      <GeneralProjectIcon style="vertical-align: middle" :type="item.body.type" /> <strong>{{ item.body.title }}</strong> project. -->
    </div>
  </NotificationItemWrapper>
</template>
