<script>
import SeverityBadge from 'ee/vue_shared/security_reports/components/severity_badge.vue';

export default {
  name: 'DependencyVulnerability',
  components: {
    SeverityBadge,
  },
  props: {
    vulnerability: {
      type: Object,
      required: true,
    },
  },
};
</script>

<template>
  <div class="d-flex align-items-baseline">
    <div class="w-8em flex-shrink-0 text-right mr-3">
      <severity-badge :severity="vulnerability.severity" />
    </div>
    {{ vulnerability.name }}
  </div>
</template>
