<template lang="pug">
base-notification(
  :can-remove="canRemove",
  :has-icon="false",
  :notification="notification",
  :read-after-click="true",
  @click="action"
)
  div(slot="content")
    span(v-html="$t('userSentMessage', {user: notification.data.sender.name})")
    .notification-small.notification-ellipses {{ notification.data.excerpt }}
</template>

<script>
import BaseNotification from './base';

export default {
  props: ['notification', 'canRemove'],
  components: {
    BaseNotification,
  },
  methods: {
    action () {
      this.$root.$emit('bv::show::modal', 'inbox-modal');
    },
  },
};
</script>