<template>
  <span class="badge" :class="{ 'badge-success': !!translation.publishedVersionId, 'badge-secondary': !translation.publishedVersionId }">
    {{ translation.publishedVersionId ? 'Gepubliceerd' : translation.pageId ? 'Niet gepubliceerd' : 'Niet vertaald' }}
  </span>
</template>

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

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