<template>
  <span class="badge" :class="{ 'badge-success': !!translation.itemId, 'badge-secondary': !translation.itemId }">
    {{ translation.itemId ? 'Vertaald' : 'Niet vertaald' }}
  </span>
</template>

<script lang="ts">
import { Component, Vue, Prop } from 'vue-property-decorator';
import { ItemTranslation } from '../../types/language';

@Component
export default class ItemTranslationStatus extends Vue {
  @Prop({ type: Object, required: true }) readonly translation!: ItemTranslation;
}
</script>
